Skip to content Skip to sidebar Skip to footer

How To Decrease Frame Rate Of Usb Webcam 2.0 Using Opencv Python

I am working on ubuntu 16.04 and using a USB 2.0 webcam. I want to decrease the frame rate somehow since the project I'm working on requires face detection which really lags the vi

Solution 1:

Okay, there is several ways you can do this but I would suggest first checking the capabilities of the webcam. You can do this by installing:

sudo apt-get install v4l-utils

And run:

v4l2-ctl --list-formats-ext

If the desired frame rate is not listed you can increase the value in cv2.waitKey() and time it with time.time() to get the frame rate you want.

Post a Comment for "How To Decrease Frame Rate Of Usb Webcam 2.0 Using Opencv Python"