Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Camera exposure returning -6.0 regardless of actual exposure

The following code always prints -6.0 regardless of if the camera is pointing at something bright or something dark. Any ideas why it's doing this and how to fix it?

cap = cv2.VideoCapture(0)
while(1):
    ret, image = cap.read()
    print(str(cap.get(cv2.CAP_PROP_EXPOSURE)))

This is on Windows 10 running OpenCV 3.1.

Camera exposure returning -6.0 regardless of actual exposure

The following code always prints -6.0 regardless of if the camera is pointing at something bright or something dark. Any ideas why it's doing this and how to fix it?

I tried the laptop-integrated Dell webcam and it always outputs 71761848.0

However, when I tried a Logitech camera the number did change (ranged from -10.0 to -3.0) depending how bright / dark the scene was.

cap = cv2.VideoCapture(0)
while(1):
    ret, image = cap.read()
    print(str(cap.get(cv2.CAP_PROP_EXPOSURE)))

This is on Windows 10 running OpenCV 3.1.