Ask Your Question

Revision history [back]

I have 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);

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);