Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Repeatedly setting FPS makes webcam images darker

I am using opencv3 and the logitech c920 webcam.

I want to change the fps of the webcam every 10 seconds but every time I change the FPS the images I am recording get darker. This is a constant dimming regardless of whether I am increasing or decreasing the FPS.

Code that reproduces the problem:

for fps_iter in range(30):

cap.set(cv2.CAP_PROP_FPS,30-fps_iter)
_, im = cap.read()
cv2.imshow(im)
cv2.waitKey(0)