-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
摄像头fps极低 #50
Comments
Python装的OpenCV库自带硬解,自行安装的c++ OpenCV库如果不支持硬解的话会对视频进行软解,倒是读取视频本身都非常卡(您可以卸载后使用sudo apt install libopencv-dev安装OpenCV库看看,我记得镜像源里的是支持硬解) |
您好,感谢您的回复,我试着使用opencv4.6.0自行安装和libopencv-dev下,区别只有在测试视频时,自行安装的4.6平均fps为60,而libopencv为80左右fps,实际调用摄像头后都是4-5fps |
c++ opencv调用摄像头需要设置参数,否则默认下为5fps读取速率,您可以参考#15 |
我参考了之前的问题设置了opencv中的采集帧率为30,用的是工具集是最新版本的v2.0b,您的python工程运行起来很正常,占用率也高,这个跑起来只有4fps左右,占用率1-5%,还有什么地方需要注意
The text was updated successfully, but these errors were encountered: