Ask Your Question

Marduk's profile - activity

2018-09-12 06:13:44 -0600 received badge  Notable Question (source)
2016-05-24 10:17:51 -0600 received badge  Popular Question (source)
2012-08-28 09:19:06 -0600 received badge  Student (source)
2012-08-19 07:42:16 -0600 received badge  Editor (source)
2012-08-19 07:40:18 -0600 asked a question Turning off auto gain and exposure.

Hi, what im trying to do is to turn off auto gain and auto exposure of my camera (Sony PS Eye). I know it is possible because i can do it in driver. However when want to do this from my code using following methods:

CvCapture* cap = cvCaptureFromCAM(0);    
cvSetCaptureProperty(cap, CV_CAP_PROP_EXPOSURE, 0.0);
cvSetCaptureProperty(cap, CV_CAP_PROP_GAIN, 0.0);

nothing happens, first cvSetCaptureProperty function is returning string "Error" to console and second one "setVideoSettings - QueryInterface Error". Am i doing something wrong?

Please help me, thanks.