Ask Your Question

Naren's profile - activity

2015-06-11 15:57:35 -0600 received badge  Good Answer (source)
2014-11-27 01:08:00 -0600 received badge  Nice Answer (source)
2014-09-22 07:34:48 -0600 received badge  Supporter (source)
2014-05-22 20:23:20 -0600 received badge  Teacher (source)
2014-02-17 22:40:34 -0600 received badge  Necromancer (source)
2014-01-17 00:49:56 -0600 answered a question How I use front camera with new OpenCV 2.4.3 for android?

Instead of modifying the source file you can also use the setCameraIndex() function in the CameraBridgeViewBase.

 mOpenCvCameraView = (CameraBridgeViewBase) findViewById(R.id.fd_activity_surface_view);
 mOpenCvCameraView.setCameraIndex(1);
 mOpenCvCameraView.setCvCameraViewListener(this);

Default camera index is -1. But before setting the front camera check whether front camera is available or not.