Ask Your Question

Revision history [back]

use the camera flash with openCV library

I have to turn the flash on using openCV. I have tried:

VideoCapture mCamera;
                mCamera = new VideoCapture(Highgui.CV_CAP_ANDROID);
                mCamera.set(Highgui.CV_CAP_PROP_ANDROID_FLASH_MODE, Highgui.CV_CAP_ANDROID_FLASH_MODE_TORCH);

There are no errors, but the flash does not turn on. Thank you in advance for your help.