Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Camera Exposure Time Get Problem

Hello

SDK: OpenCV 4.3.0 IDE: Visual Studio 2015 C++ Camera: SVC-1302U

I am using Camera using VideoCapture Class. No problem with getting images, controlling exposure and even saving images.

However, I am having trouble getting the currently set Exposure Time value. Obviously, saving the image confirms that the exposure value has changed. But Always return only the same -5 value.

VideoCapture cap(0) double exposure; exposure = cap.get(cv::CAP_PROP_EXPOSURE);

I want to know how to solve this problem. I have also attached the sample code that I tested.

Atteched to Code: https://www.dropbox.com/s/1xfoli24sh1k18e/Exam_WebCam.zip?dl=0

Thanks!

click to hide/show revision 2
None

updated 2020-06-10 02:09:53 -0600

berak gravatar image

Camera Exposure Time Get Problem

Hello

SDK: OpenCV 4.3.0
IDE: Visual Studio 2015 C++
Camera: SVC-1302U

SVC-1302U

I am using Camera using VideoCapture Class. No problem with getting images, controlling exposure and even saving images.

However, I am having trouble getting the currently set Exposure Time value. Obviously, saving the image confirms that the exposure value has changed. But Always return only the same -5 value.

VideoCapture cap(0)
double exposure;
exposure = cap.get(cv::CAP_PROP_EXPOSURE);

cap.get(cv::CAP_PROP_EXPOSURE);

I want to know how to solve this problem. I have also attached the sample code that I tested.

Atteched to Code: https://www.dropbox.com/s/1xfoli24sh1k18e/Exam_WebCam.zip?dl=0

Thanks!