简体   繁体   English

Gstreamer的OpenCV 3.0.0错误

[英]OpenCV 3.0.0 error with Gstreamer

I just installed OpenCV 3.0 following this tutorial: http://rodrigoberriel.com/2014/10/installing-opencv-3-0-0-on-ubuntu-14-04/ 我刚刚按照此教程安装了OpenCV 3.0: 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

I get the following error: 我收到以下错误:

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? 有人可以帮我吗?

I did the same, following the same tutorial. 我遵循相同的教程进行了相同的操作。 Only difference I made is with Gstreamer, doing this: 我所做的唯一区别是与Gstreamer一起执行的:

  • sudo add-apt-repository ppa:gstreamer-developers/ppa sudo add-apt-repository ppa:gstreamer-developers / ppa
  • sudo apt-get update sudo apt-get更新
  • sudo apt-get install gstreamer1.0 sudo apt安装gstreamer1.0

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). lena.jpg文件不在同一目录中,而是数据文件夹(高一)。 So the command line in the cpp folder should be: 因此,cpp文件夹中的命令行应为:

./cpp-example-facedetect ../data/lena.jpg ./cpp-example-facedetect ../data/lena.jpg

I got the first part of this error: "GStreamer: Error opening bin: Unrecoverable syntax error while parsing pipeline" with gstreamer installed already. 我得到了该错误的第一部分:已经安装了gstreamer的“ GStreamer:打开bin时出错:解析管道时发生不可恢复的语法错误”。 Turns out it was because I was using a "~" in my file path and I forgot that it would not be expanded. 原来是因为我在文件路径中使用了“〜”而我忘记了它不会被扩展。 Not the most intuitive error message for it not being able to find the file. 不是它无法找到文件的最直观的错误消息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM