how can I use only the back camera with VideoCapture?
hello I'm realizing the face detection with opencv4android, but I want to use only the back camera how can I do? Thank you.
If you use OpenCV 2.4.3.2 and NativeCameraView or JavaCameraView classes you can set camera index with opencv:camera_id property of View object in layout.xml. See tutorial-1 as an example. Possible property values are back, front, any.
If you have direct access to camera object you can pass camera index. -1 - any camera, 0 - back camera, 1 - front camera.
Asked: 2013-01-18 02:39:18 -0600
Seen: 1,562 times
Last updated: Jan 18 '13