gstreamer opencv edgedetect [英] gstreamer opencv edgedetect

查看:51
本文介绍了gstreamer opencv edgedetect的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 gstreamer 中使用 edgedetect.我之前检查过gst-inspect.这是我的结果:

I want to use edgedetect with gstreamer. I check with gst-inspect before. This is the result I have:

login@machine:~$ gst-inspect opencv
No such element or plugin 'opencv'
login@machine:~$ gst-inspect edgedetect
No such element or plugin 'edgedetect'

安装的插件是:

sudo apt-cache show gstreamer1.0-plugins-bad | grep Version
Version: 1.0.3-1~ubuntu12.04.1~ppa1
Gstreamer-Version: 1.0

opencv"插件必须在插件坏.我可以使用包含在 plugin bad 中的其他插件启动 gst-inspect,但不能使用 opencv 或 edgedetect.

"opencv" plugin must be in plugin bad. I can launch gst-inspect with other plugins included in plugin bad, but not opencv or edgedetect.

我尝试从源代码安装插件,没有任何变化.

I tried to install the plugin from the source code, nothing has changed.

推荐答案

今天如果你想使用描述的 GStreamer OpenCV 插件 这里这里 你只需要做的是:

Today if you want to use the GStreamer OpenCV Plugins described here and here you just need to do is:

sudo apt install gstreamer1.0-opencv

如果您想检查 edgedetect 插件是否可用(以及其他插件):

If you want to check if the edgedetect plugin is available (as well as the others ones):

$ gst-inspect-1.0 edgedetect
Factory Details:
  Rank                     none (0)
  Long-name                edgedetect
  Klass                    Filter/Effect/Video
  Description              Performs canny edge detection on videos and images.
  Author                   Michael Sheldon <mike@mikeasoft.com>

Plugin Details:
  Name                     opencv
  Description              GStreamer OpenCV Plugins
  Filename                 /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstopencv.so
  Version                  1.14.5
  License                  LGPL
  Source module            gst-plugins-bad
  Source release date      2019-05-29
  Binary package           GStreamer Bad Plugins (Ubuntu)
  Origin URL               https://launchpad.net/distros/ubuntu/+source/gst-plugins-bad1.0

GObject
 +----GInitiallyUnowned
       +----GstObject
             +----GstElement
                   +----GstBaseTransform
                         +----GstVideoFilter
                               +----GstOpencvVideoFilter
                                     +----GstEdgeDetect

要测试它是否工作正常:

To test if it works fine:

$ gst-launch-1.0 videotestsrc ! videoconvert ! edgedetect ! videoconvert ! xvimagesink

它在我的 Jetson Nano 4Gb 和 Jetpack 4.5.1 上运行良好.

It worked very well on my Jetson Nano 4Gb with Jetpack 4.5.1.

信息:

$ dpkg -L gstreamer1.0-opencv
/.
/usr
/usr/lib
/usr/lib/aarch64-linux-gnu
/usr/lib/aarch64-linux-gnu/gstreamer-1.0
/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstopencv.so
/usr/share
/usr/share/doc
/usr/share/doc/gstreamer1.0-opencv
/usr/share/doc/gstreamer1.0-opencv/AUTHORS
/usr/share/doc/gstreamer1.0-opencv/NEWS.gz
/usr/share/doc/gstreamer1.0-opencv/README.Debian
/usr/share/doc/gstreamer1.0-opencv/README.gz
/usr/share/doc/gstreamer1.0-opencv/changelog.Debian.gz
/usr/share/doc/gstreamer1.0-opencv/copyright

这篇关于gstreamer opencv edgedetect的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆