How to set camera FPS in OpenCV? CV_CAP_PROP_FPS is a fake

前端 未结 4 739
猫巷女王i
猫巷女王i 2020-12-09 17:06

How to set Camera FPS?

May be cvSetCaptureProperty(cameraCapture, CV_CAP_PROP_FPS, 30); ?

But it\'s return HIGHGUI ERROR: V4L2: Unable to get property (5) -

4条回答
  •  庸人自扰
    2020-12-09 17:55

    using the python wrappers for opencv, it worked for me to refer to the variable as:

    cap = cv2.VideoCapture(1)
    cap.set(cv2.cv.CV_CAP_PROP_FPS, 60)
    

    I am using python 2.7.3 and opencv 2.4.8

    The camera is the PS3 Eye

提交回复
热议问题