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

前端 未结 4 738
猫巷女王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:50

    I don't know if that's still valid, but some time ago, something like one year and a half, I encountered that exactly problem. I contacted with a developer of OpenCV and he told me that the access and ability to change some of the properties of a capture weren't implemented yet and some other just worked for certain kinds of camera. I finally took a look to libdc1394 (working in linux) and made some functions that converted the data retrieved by libdc1394 to IplImages from OpenCV. It wasn't a such a tough task.

提交回复
热议问题