Ask Your Question

autogain. how to disable autogain and set a fixed value

asked 2012-07-04 13:26:29 -0500

carlosd gravatar image

I would like to know if there is a simple and cheap way to achieve this. I am requiring to control the gain (and exposure if possible)in a webcam using OpenCV.

Usually automatic gain(autogain) is set on in standard cheap web cameras (and analog video cameras too). For my project I need to control by software the gain/ exposure and any other property available in the camera. I am using OpenCV.

I would like: a recommendation for a cheap/flexible web usb camera that can be controlled with OpenCV. Any sugestion?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-07-04 23:04:21 -0500

vinjn gravatar image

updated 2012-07-05 01:50:49 -0500

Kirill Kornyakov gravatar image

You can call the function
CVAPI(int) cvSetCaptureProperty( CvCapture* capture, int property_id, double value );
with property_id to be CV_CAP_PROP_AUTO_EXPOSURE and value to be 0.0;

You can also see more properties here

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2012-07-04 13:26:29 -0500

Seen: 4,448 times

Last updated: Jul 05 '12