如何解决opencv错误》 VIDIOC_S_FMT错误16,设备或资源繁忙”
我在 ubuntu 11.10 上使用 opencv 2.1。当我尝试运行示例程序来操作来自两个 USB 网络摄像头的视频时,出现如下所示的错误
我尝试了语句 $ v4l2stereo -0 /dev/video0 -1 /dev/video1
遇到如下错误 当我像
hue is not supported hueauto is not supported VIDIOC_S_FMT error 16, Device or resource busy
这样更改命令时 $ v4l2stereo -0 /dev/video1 -1 /dev/video0
错误
hue is not supported hueauto is not supported hue is not supported hueauto is not supported (Left image:2388): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", (Left image:2388): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", (Left image:2388): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", (Left image:2388): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", Failed to acquire images
我收到类似“请帮助我”的 谢谢
I am using opencv 2.1 on ubuntu 11.10. When i tried to run a sample program to manipulate video from two usb web cameras an error shown as below
I tried the statement $ v4l2stereo -0 /dev/video0 -1 /dev/video1
Got an error like this
hue is not supported hueauto is not supported VIDIOC_S_FMT error 16, Device or resource busy
When i changed the command like this $ v4l2stereo -0 /dev/video1 -1 /dev/video0
I got an error like
hue is not supported hueauto is not supported hue is not supported hueauto is not supported (Left image:2388): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", (Left image:2388): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", (Left image:2388): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", (Left image:2388): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", Failed to acquire images
Kindly Help me
Thank You
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
安装 gtk2-engines-pixbuf 应该可以解决视频问题:
Installing gtk2-engines-pixbuf should do the trick for the video problem:
如果相机之前工作正常,但后来开始显示此错误,请确保您没有偶然修改视频内存分配。要仔细检查运行
sudo raspi-config
并在高级选项>下内存分割确保您分配至少 128MB。If the camera worked fine before, but later started showing this error then make sure you didn't modify by chance the video memory allocation. To double-check run
sudo raspi-config
and under Advanced Options > Memory Split ensure you allocated at least 128MB.