-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Setting CAP_PROP_EXPOSURE on VideoCapture does not change anything #9738
Copy link
Copy link
Closed
Labels
category: videoio(camera)question (invalid tracker)ask questions and other "no action" items here: https://forum.opencv.orgask questions and other "no action" items here: https://forum.opencv.org
Description
System information (version)
- OpenCV => 3.3.0
- Operating System / Platform => Windows 10 Enterprise 64 Bit
- Compiler => using opencv-python
Detailed description
Setting exposure is not working with the python wrapper for opencv, I don't know if this is related to the wrapper.
I tried to set CAP_PROP_AUTO_EXPOSURE as well to disable any auto exposure.
The camera is a HD USB Camera USB8MP02G
http://www.elpcctv.com/8mp-highdefinition-usb-camera-module-usb20-sony-imx179-color-cmos-sensor-75degree-lens-p-223.html
Steps to reproduce
I use this snippet to try to set the exposure to different values
import cv2
cap = cv2.VideoCapture(0)
cap.set(cv2.CAP_PROP_AUTO_EXPOSURE, 0)
cap.set(cv2.CAP_PROP_EXPOSURE, -7.0)
print(cap.get(cv2.CAP_PROP_EXPOSURE))
while True:
ret, frame = cap.read()
cv2.imshow('test', frame)
cv2.waitKey(1)
I can't see any difference when changing exposure
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
category: videoio(camera)question (invalid tracker)ask questions and other "no action" items here: https://forum.opencv.orgask questions and other "no action" items here: https://forum.opencv.org