OpenCV 3.0.0 error with Gstreamer

不羁岁月 提交于 2019-12-01 11:04:44

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 update
  • sudo apt-get install 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). So the command line in the cpp folder should be:

./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. 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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!