How to set PS Eye 3 to auto-exposure mode ?

asked 2018-11-29 13:53:19 -0500

I am working with a PS-Eye-3 camera, libusb, PSEye driver, OpenCV 3.4.2 and Visual Studio 2015 / C++ on Windows 10.

I can set the exposure of the camera to any value by using this code:

cv::VideoCapture *cap;  
...
cap = new cv::VideoCapture(0);
cap->set(CV_CAP_PROP_EXPOSURE, exposure); // exposure = [0, 255]

Now I would like to switch to auto-exposure too. How can I set the camera to auto-exposure mode?

I tried the following:

cap->set(CV_CAP_PROP_EXPOSURE, 0);      // not working
cap->set(CV_CAP_PROP_EXPOSURE, -1);     // not working
cap->set(CV_CAP_PROP_AUTO_EXPOSURE, 1); // not working
cap->set(CV_CAP_PROP_AUTO_EXPOSURE, 0); // not working

Some idea?

edit retag flag offensive close merge delete