Ask Your Question

Marc J's profile - activity

2012-09-03 16:16:03 -0600 received badge  Editor (source)
2012-09-03 16:14:52 -0600 answered a question [Android - Native Camera] Setting ISO (and other camera parameters)

I have to test this further, but I'd say the patch is implemented in 2.4.2 even though JavaDoc says for the method VideoCapture.set:

"propId Property identifier. It can be one of the following: * CV_CAP_PROP_FRAME_WIDTH Width of the frames in the video stream. * CV_CAP_PROP_FRAME_HEIGHT Height of the frames in the video stream. value Value of the property."

This made me think at first, only those two values are valid. But it seems you can use all the constants from Highgui e.g.

mCamera.set(Highgui.CV_CAP_PROP_ANDROID_WHITE_BALANCE,Highgui.CV_CAP_ANDROID_WHITE_BALANCE_SHADE); or mCamera.set(Highgui.CV_CAP_PROP_ANDROID_FOCUS_MODE,Highgui.CV_CAP_ANDROID_FOCUS_MODE_INFINITY);

2012-09-03 07:19:03 -0600 commented question How to set scene mode for android camera?

I see, thanks. A search for "camera parameters android" didn't turn up with that question, at least not on the first page.

2012-09-01 12:48:29 -0600 commented question How to set scene mode for android camera?

It seem like this is not implemented yet. I found the following patch: http://code.opencv.org/issues/1789

2012-09-01 10:08:15 -0600 asked a question How to set scene mode for android camera?

Hello everyone,

I'm playing arround with the color blob detection example for android and am wondering how to set the camera scene mode to night.

In a regular application I'd do something like

        Camera.Parameters parameters = cam.getParameters();
        parameters.setSceneMode(Camera.Parameters.SCENE_MODE_NIGHT);
        cam.setParameters(parameters);

How can I do this with the org.opencv.highgui.VideoCapture ?

Thanks and greetings Marc