今天,如果您想使用此处和此处描述的 GStreamer OpenCV 插件,您只需要做的是:
sudo apt install gstreamer1.0-opencv
如果您想检查edgedetect
插件是否可用(以及其他插件):
$ 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
要测试它是否工作正常:
$ gst-launch-1.0 videotestsrc ! videoconvert ! edgedetect ! videoconvert ! xvimagesink
它在我的带有 Jetpack 4.5.1 的 Jetson Nano 4Gb 上运行良好。
有关信息:
$ 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