且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在OpenCV中设置相机FPS? CV_CAP_PROP_FPS是假的

更新时间:2022-02-11 21:20:49

我不知道这是否仍然有效,但前一段时间,像一年半,我遇到了确切的问题。我与OpenCV的开发人员联系,他告诉我,改变捕获的一些属性的访问和能力尚未实现,其他一些只是为某些类型的相机工作。我终于看了一下 libdc1394 (在Linux中工作),并做了一些功能,将libdc1394检索的数据转换为IplImages从OpenCV。这不是一个艰巨的任务。

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.