How to color blob detection switch the camera, take a picture and turn on/off the flash

asked 2014-02-03 09:57:37 -0500

updated 2014-02-05 05:03:11 -0500

To make my application I am using the design color blob detection, where the camera is the type CameraBridgeViewBase, and I could find about this type was:

static int CAMERA_ID_BACK; 
static int CAMERA_ID_FRONT; 
public void setCameraIndex (cameraIndex int) {} 
/ / To choose between the cameras, but I can not resurface the function.

and

static int CV_CAP_ANDROID_FLASH_MODE_OFF; 
static int CV_CAP_ANDROID_FLASH_MODE_ON; 
/ / To turn on and turn off the flash, but I can not use it;

I need help because I can not also take pictures in this project!! I've tried to combine it with the 3 tutorial - Camera Control to power but unable to resolve,

edit retag flag offensive close merge delete