2020-08-12 22:59:47 -0600 | received badge | ● Famous Question (source) |
2019-11-24 15:25:12 -0600 | received badge | ● Notable Question (source) |
2019-04-01 07:33:14 -0600 | received badge | ● Popular Question (source) |
2017-08-13 11:59:46 -0600 | asked a question | How do I set exposure time of Logitech C922 webcam on OpenCV? Hello I am writing a code for a project, and it requires some color segmentation which seems to be quite sensitive to the camera settings. I can get the frame size, brightness, autofocus, contrast and etc to set to a certain value, but I can't seem to set the exposure. My webcam always changes to auto exposure, and I prefer to have a set manual exposure. I tried the code below: import cv2 import numpy as np cap = cv2.VideoCapture(1) cap.set(cv2.CAP_PROP_FRAME_WIDTH, 864) cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 480) cap.set(cv2.CAP_PROP_BRIGHTNESS, 0.7) cap.set(cv2.CAP_PROP_AUTOFOCUS,0) cap.set(cv2.CAP_PROP_EXPOSURE,0.5) but as I stated before, it will not change the exposure. Does anyone have any experience with c922 webcams, or have any suggestions? Thanks |