opencv2.4.2 - open Front camera issue
I developed an android application to capture image with the help of opencv2.4.2(with face detection). So I want to open device's front camera. I used the following code to open front camera,
mCamera = new VideoCapture(Highgui.CV_CAP_ANDROID+1)
It is working in mobile(SAMSUNG GALAXY S II. front and back camera available). But it is not working in my tablet(800 * 480 screen resolution. only front camera available).
If I use the following code,
mCamera = new VideoCapture(Highgui.CV_CAP_ANDROID)
It is working in tablet. But it is not working in my mobile. Can someone help me to fix this?