Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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 function is returning string "Error" to console and second one "setVideoSettings - QueryInterface Error". Am i doing something wrong?

Please help me, thanks.

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.

click to hide/show revision 3
retagged

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.

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.