Ask Your Question
0

OpenCV Sample face-detection change camera

asked 2013-10-25 08:13:52 -0600

sando gravatar image

updated 2013-10-25 09:55:29 -0600

berak gravatar image

Where do I change camera to front camera in android face detection sample?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-01-05 15:40:54 -0600

Roman gravatar image

private CameraBridgeViewBase mOpenCvCameraView;

in onManagerConnected of BaseLoaderCallback just set the index

mOpenCvCameraView.setCameraIndex(1);

Hint,its ok for debug, but for release, check number of cameras available, not every device has front face camera.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-10-25 08:13:52 -0600

Seen: 733 times

Last updated: Jan 05 '14