Ask Your Question
1

"add image capture button in opencv camera "

asked 2012-08-09 05:50:44 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

Hai, I am developing an image capturing application using opencv 2.4.2 in Android. So I downloaded the opencv 2.4.2 sdk and used the sample "OpenCV Sample - face-detection". The camera is opened and face detected well in my emulator. Now I want to add a button to capture image frame. I could't add button using "addContentView". Is it possible? Can you explian?

Thanks, Karthi

edit retag flag offensive close merge delete

Comments

Such sample will be included into one of future versions of OpenCV. In the meantime you can check this application: http://code.google.com/p/android-opencv-panorama/ . Here it is on Google Play market: https://play.google.com/store/apps/details?id=net.pandorica.opencv.pano&feature=search_result#?t=W251bGwsMSwxLDEsIm5ldC5wYW5kb3JpY2Eub3BlbmN2LnBhbm8iXQ.. . I'm not sure that this is the best example, but it allow you to take images from your camera.

Kirill Kornyakov gravatar imageKirill Kornyakov ( 2012-08-09 10:55:47 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2012-08-10 02:34:25 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

OpenCV native camera (aka VideoCapture class) doesn't support photo taking mode. Look at the Tutorial 1 sample that uses Android Java camera and read about it at http://developer.android.com/guide/topics/media/camera.html

edit flag offensive delete link more

Comments

thanks Andrey Pavlenko. Is it possible to create the layer and create the button in that layer over the opencv camera?

karthi gravatar imagekarthi ( 2012-08-10 05:12:11 -0600 )edit

Question Tools

Stats

Asked: 2012-08-09 05:50:44 -0600

Seen: 4,576 times

Last updated: Aug 10 '12