Ask Your Question
0

how can I use only the back camera with VideoCapture?

asked 2013-01-18 02:39:18 -0500

this post is marked as community wiki

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

hello I'm realizing the face detection with opencv4android, but I want to use only the back camera how can I do? Thank you.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-01-18 04:51:39 -0500

this post is marked as community wiki

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

  1. 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.

  2. If you have direct access to camera object you can pass camera index. -1 - any camera, 0 - back camera, 1 - front camera.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-01-18 02:39:18 -0500

Seen: 730 times

Last updated: Jan 18 '13