Ask Your Question

Draw a rectangle on image frames received via Android Camera

asked 2013-04-15 01:54:10 -0500

this.VATSAG gravatar image


I'm trying to learn the possibilities using OpenCV for Android. At this point i want to draw a rectangle on the image frames which is continuously supplied by the videocapture. Can any of you help you with this.

Thanks a lot

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-04-15 10:16:52 -0500

First of all use the Java docs to see what is implemented on

Look there at the core library, go to method summary and then look for your drawing function. This is what I found.

rectangle(Mat img, Point pt1, Point pt2, Scalar color)
// Draws a simple, thick, or filled up-right rectangle.

Hope this will solve your problem :)

edit flag offensive delete link more

Question Tools


Asked: 2013-04-15 01:54:10 -0500

Seen: 7,457 times

Last updated: Apr 15 '13