Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV and Android NDK - setting camera Exposure

Hi, I'm having problems setting camera propertie EXPOSURE..

This is my code:

vt1->capture = cvCaptureFromCAM( CV_CAP_ANDROID + vt1->cam_device); cvSetCaptureProperty(vt1->capture, CV_CAP_PROP_EXPOSURE, -2);

but if I print out camera EXPOSURE like this:

LOGI("EXPOSURE = %d", cvGetCaptureProperty(vt1->capture, CV_CAP_PROP_EXPOSURE));

it doesn't give me "-2", it gives me "0". Is it possible that camera manufacturer made it impossible to change exposure settings? It is possible to change exposure from built-in camera application, but I can't do it through OpenCV. Device is HTC ONE X