Ask Your Question

Drag0's profile - activity

2019-07-02 13:49:36 -0600 received badge  Notable Question (source)
2015-12-29 11:27:12 -0600 received badge  Popular Question (source)
2013-03-09 18:21:08 -0600 received badge  Student (source)
2013-03-04 15:04:16 -0600 received badge  Scholar (source)
2013-03-01 02:35:03 -0600 asked a question 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