VIDEOIO ERROR: V4L/V4L2: VIDIOC_S_CROP
Ubuntu14.04虚拟机上运行opencv打开笔记本内置摄像头摄像处理程序,报错如下:VIDEOIO ERROR: V4L/V4L2: VIDIOC_S_CROP原因:val/v4l2等必要的依赖库安装在opencv之后,opencv库编译时没有编译进去解决方法:opencv卸掉重装具体步骤...
Ubuntu14.04虚拟机上运行opencv打开笔记本内置摄像头摄像处理程序,报错如下:
VIDEOIO ERROR: V4L/V4L2: VIDIOC_S_CROP
原因:
val/v4l2等必要的依赖库安装在opencv之后,opencv库编译时没有编译进去
解决方法:
opencv卸掉重装
具体步骤:
1.卸掉opencv,卸载方法参考如下:
http://blog.sina.com.cn/s/blog_96b836170102wadb.html
2.重装opencv,安装方法参考如下:
http://blog.sina.com.cn/s/blog_96b836170102wacn.html
文章中第一步提到的安装包是使用opencv的基础包,做视频方面的把下面的也装上:
apt-get install ffmpeg libavcodec-dev libavcodec52 libavformat52 libavformat-dev
apt-get install libgstreamer0.10-0-dbg libgstreamer0.10-0 libgstreamer0.10-dev
apt-get install libxine1-ffmpeg libxine-dev libxine1-bin
apt-get install libunicap2 libunicap2-dev
apt-get install libdc1394-22-dev libdc1394-22 libdc1394-utils
apt-get install swig
apt-get install libv4l-0 libv4l-dev
apt-get install Python-numpy
apt-get install libpython2.6 python-dev python2.6-dev
python短期没有用,后期开发可能用到,建议安装上
更多推荐
所有评论(0)