Linux下OpenCV设置摄像头帧率FPS
2017-07-03 16:09
931 查看
通常情况下调用
CV_CAP_PROP_FPS is a NOT a fake. See cap_libv4l.cpp(源码) in OpenCV github repo. The key is to make sure, you use libv4l over v4l while configuring OpenCV. For that, before running cmake, install libv4l-dev
Now while configuring OpenCV with cmake, enable option,
And then while building your OpenCV code, you will have to link with libv4l1/libv4l2/libv4lconvert.
Arbitary FPS values at the resolutions you choose, needn’t be supported by your webcam. You may check supported resolutions/fps with a graphical tools like cheese or commands like lsusb (2)
参考文献:
How to set camera FPS in OpenCV? CV_CAP_PROP_FPS is a fake
cap.set(cv2.cv.CV_CAP_PROP_FPS ,10)是不会起作用的,可以尝试使用如下方法:
CV_CAP_PROP_FPS is a NOT a fake. See cap_libv4l.cpp(源码) in OpenCV github repo. The key is to make sure, you use libv4l over v4l while configuring OpenCV. For that, before running cmake, install libv4l-dev
sudo apt-get install libv4l-dev
Now while configuring OpenCV with cmake, enable option,
WITH_LIBV4L. If all goes good, in configuration status, you will see some thing similar to below
V4L/V4L2: Using libv4l1 (ver ) / libv4l2 (ver )
And then while building your OpenCV code, you will have to link with libv4l1/libv4l2/libv4lconvert.
Arbitary FPS values at the resolutions you choose, needn’t be supported by your webcam. You may check supported resolutions/fps with a graphical tools like cheese or commands like lsusb (2)
参考文献:
How to set camera FPS in OpenCV? CV_CAP_PROP_FPS is a fake
相关文章推荐
- OpenCV~捕获摄像头 帧率fps和waitkey函数 问题
- OpenCV设置摄像头的分辨率(转-根据自己的改写)
- Linux下使用QT调用opencv读取摄像头视频 调试心得
- 在linux下配置好opencv后,测试笔记本自带的摄像头
- linux下设置opencv环境变量
- opencv 设置摄像头分辨率
- OpenCV摄像头采集分辨率设置问题
- OpenCV设置摄像头分辨率及全屏显示
- Linux下基于OpenCV的摄像头数据采集与传输
- opencv 设置摄像头
- 虚拟机下打开摄像头(Linux ubuntu 2.6.32-122-rtai+QT+opencv)
- Linux+QT+OpenCv摄像头调试心得(2)----点击退出关闭窗体,提示“程序异常终止”
- OpenCV对摄像头分辨率的设置
- Qt开发:Qt+OpenCV在(Linux平台)PC上采集摄像头视频(源码奉送)
- linux(ubuntu)下,如何利用opencv调用usb摄像头(Eclipse)
- 摄像头帧率设置问题的解决
- 关于DirectShow中摄像头的帧率设置
- Linux下使用QT调用opencv读取摄像头视频 调试心得 .
- linux(ubuntu)下,如何利用opencv调用usb摄像头(Eclipse)
- Python-OpenCV设置摄像头分辨率