Gstreamer的OpenCV 3.0.0错误 [英] OpenCV 3.0.0 error with Gstreamer
问题描述
我刚刚按照本教程安装了OpenCV 3.0: http://rodrigoberriel.com/2014/10/installing-opencv-3-0-0-on-ubuntu-14-04/
I just installed OpenCV 3.0 following this tutorial: http://rodrigoberriel.com/2014/10/installing-opencv-3-0-0-on-ubuntu-14-04/
在安装过程中我没有遇到任何错误.但是,当我尝试运行以下示例程序时,
I didn't encounter any error during the installation process. However, when I tried running the a sample program such as the following,
cd cpp/
./cpp-example-facedetect lena.jpg // (../data/lena.jpg) OpenCV 3.0 beta
./cpp-example-houghlines pic1.png // (../data/pic1.jpg) OpenCV 3.0 beta
我收到以下错误:
Processing 1 lena.jpg
GStreamer: Error opening bin: Unrecoverable syntax error while parsing pipeline lena.jpg
Capture from AVI didn't work
init done
opengl support available
In image read
我是计算机视觉的新手,对于可能出现的问题我一无所知.有人可以帮我吗?
I'm a complete newbie to computer vision and I don't have a clue as to what the problem could be. Could anyone help me out?
推荐答案
我按照相同的教程进行了相同的操作. 我所做的唯一改变是与Gstreamer一起完成的:
I did the same, following the same tutorial. Only difference I made is with Gstreamer, doing this:
- sudo add-apt-repository ppa:gstreamer-developers/ppa
- sudo apt-get更新
- sudo apt-get install gstreamer1.0
但是您的问题中还有另一点不清楚. lena.jpg文件不在同一目录中,而是数据文件夹(高一). 因此,cpp文件夹中的命令行应为:
But another thing that is not clear in your question. The lena.jpg file is not in the same directory, but the data folder (one higher). So the command line in the cpp folder should be:
./cpp-example-facedetect ../data/lena.jpg
./cpp-example-facedetect ../data/lena.jpg
这篇关于Gstreamer的OpenCV 3.0.0错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!