Ask Your Question

Revision history [back]

You are using two different flags cv2.CV_CAP_PROP_FPS and cv2.CAP_PROP_FPS. The right flag is cv2.CAP_PROP_FPS and change it to so when setting your cap.

You are using two different flags cv2.CV_CAP_PROP_FPS and cv2.CAP_PROP_FPS. The right correct flag is cv2.CAP_PROP_FPS and change it to so when setting your cap.

You are using two different flags cv2.CV_CAP_PROP_FPS and cv2.CAP_PROP_FPS. The correct flag is cv2.CAP_PROP_FPS and change it to so when setting your cap.

EDIT I

Read this to understand how FPS works. One way of achieving what you want is to simply add a delay in your loop that reads the frames using cv2.waitKey(delayTime). If you set delayTime=50 then FPS will be 1000/50 = 20.

You are using two different flags cv2.CV_CAP_PROP_FPS and cv2.CAP_PROP_FPS. The correct flag is cv2.CAP_PROP_FPS and change it to so when setting your cap.

EDIT I

Read this to understand how FPS works. One way of achieving what you want is to simply add a delay in your loop that reads the frames using cv2.waitKey(delayTime)cv2.waitKey(delay_time). If you set delayTime=50delay_time=50 then FPS will be 1000/50 = 20.

You are using two different flags cv2.CV_CAP_PROP_FPS and cv2.CAP_PROP_FPS. The correct flag is cv2.CAP_PROP_FPS and change it to so when setting your cap.

EDIT I

Read this to understand how FPS works. One way of achieving what you want is to simply add a delay in your loop that reads the frames using cv2.waitKey(delay_time). If you set delay_time=50 then FPS will be 1000/50 = 20.20. So for your case you could set a delay_time = 100 to get 10FPS.

You are using two different flags cv2.CV_CAP_PROP_FPS and cv2.CAP_PROP_FPS. The correct flag is cv2.CAP_PROP_FPS and change it to so when setting your cap.

EDIT I

Read this to understand how FPS works. One way of achieving what you want is to simply add a delay in your loop that reads the frames using cv2.waitKey(delay_time). If you set delay_time=50 then FPS will be 1000/50 = 20. So for your case you could set a delay_time = 100 100 to get 10FPS.