Ask Your Question
0

Draw a rectangle on image frames received via Android Camera

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

this.VATSAG gravatar image

Hello

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
1

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

First of all use the Java docs to see what is implemented on http://docs.opencv.org/java/2.4.5/

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
Login/Signup to Answer

Question Tools

Stats

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

Seen: 6,798 times

Last updated: Apr 15 '13