Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.

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.mobile. Can someone help me to fix this?

click to hide/show revision 3
No.3 Revision

updated 2013-03-20 04:15:54 -0600

berak gravatar image

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?