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.
Are you also using this on an android device? I just want to make sure you are not using this on a normal camera
Yes I'm using this on an android device. I try:
but do not show toast
And when I try if(mCamera != null) show toast
Try my java camera class that I created back then: http://answers.opencv.org/question/19796/android-use-autofocus-with-camerabridgeviewbase/ It tells you if a certain function does not work
thanks but i don't now why i'm use this class i my project. I would like to know why mCamera.isOpened() is not
You shouldnt use this class in your project, just check out if the torch mode actually works and if you can even get the camera to work