Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

 mOpenCvCameraView = (CameraBridgeViewBase) findViewById(;

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