加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c – 缺少用于OpenCV的libv4l

发布时间:2020-12-16 07:22:12 所属栏目:百科 来源:网络整理
导读:我正在尝试使用我的网络摄像头和OpenCV来运行我的应用程序. 但是,当我试图用videoCapture获取帧时,它给了我这个错误. VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV Sample: ../test/test.cpp:3331 检查问题后,一些建议说
我正在尝试使用我的网络摄像头和OpenCV来运行我的应用程序.
但是,当我试图用videoCapture获取帧时,它给了我这个错误.

VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by
OpenCV Sample: ../test/test.cpp:3331

OpenCV build configuration

检查问题后,一些建议说要使用此命令来运行应用程序

LD_PRELOAD="/usr/lib/libv4l/v4l2convert.so" ./MY-APP

但我在系统/usr/lib/libv4l/v4l2convert.so中没有这个库文件

我不确定在哪里可以获得这个库,或者它是否附带OpenCV本身?

谢谢

编辑:也试过了

sudo apt-get install libv4l-0
[sudo] password for nvidia: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libv4l-0 is already the newest version (1.10.0-1).
libv4l-0 set to manually installed.
0 upgraded,0 newly installed,0 to remove and 0 not upgraded.

解决方法

我找到了这个lib here

它是ubuntu软件包的链接,应该有lib的软件包是libv4l-0,你可以在链接中看到.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读