gpt4 book ai didi

python - 安装了gst-python,但是找不到插件

转载 作者:行者123 更新时间:2023-12-03 09:46:23 26 4
gpt4 key购买 nike

我正在尝试为 Google Coral USB 加速器运行一些 Gstreamer 示例 - 我没有使用 Coral 开发板。驱动程序已安装并运行,我可以使用 OpenCV 和 edgetpu 库对来自我的相机的图像进行分类。我想让网络服务器演示运行。我已经将范围缩小到 Gstreamer 无法找到 Coral 提供的插件。

插件来自这个 repo(其中还包含演示代码 edgetpu_detect_serveredgetpu_detect : https://coral.googlesource.com/edgetpuvision/+/refs/heads/master/plugins/

Coral 提供了三个插件:

linaro@linaro-alip:~$ ls /home/linaro/edgetpuvision/plugins/
glbox.py glsvgoverlaysink.py glsvgoverlaysrc.py

尝试运行时出现的错误,例如检测服务器是:
(edgetpu_detect:28764): dbind-WARNING **: 11:38:56.589: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
v4l2src device=/dev/video0 ! video/x-raw,format=YUYV,width=640,height=512,framerate=30/1 ! glupload ! tee name=t
t. ! queue ! glsvgoverlaysink name=glsink
t. ! queue max-size-buffers=1 leaky=downstream ! glfilterbin filter=glbox ! video/x-raw,format=RGB,width=300,height=300 ! appsink name=appsink emit-signals=True max-buffers=1 drop=True sync=False
Traceback (most recent call last):
File "/usr/local/bin/edgetpu_detect", line 11, in <module>
load_entry_point('edgetpuvision==1.0', 'console_scripts', 'edgetpu_detect')()
File "/home/linaro/.local/lib/python3.7/site-packages/edgetpuvision/detect.py", line 207, in main
run_app(add_render_gen_args, render_gen)
File "/home/linaro/.local/lib/python3.7/site-packages/edgetpuvision/apps.py", line 70, in run_app
display=args.displaymode):
File "/home/linaro/.local/lib/python3.7/site-packages/edgetpuvision/gstreamer.py", line 248, in run_gen
display=display)
File "/home/linaro/.local/lib/python3.7/site-packages/edgetpuvision/gstreamer.py", line 254, in run
run_pipeline(pipeline, layout, loop, render_overlay, display)
File "/home/linaro/.local/lib/python3.7/site-packages/edgetpuvision/gstreamer.py", line 300, in run_pipeline
pipeline = Gst.parse_launch(pipeline)
gi.repository.GLib.Error: gst_parse_error: no element "glsvgoverlaysink" (1)

我已经按照此处所述从源代码安装了 gst-python:lifetimetransfer.com/how-to-install-gstreamer-from-sources-on-ubuntu/

似乎没问题,我已将其与 Python 3.7 联系起来。
linaro@linaro-alip:$ gst-inspect-1.0 /usr/local/lib/gstreamer-1.0/libgstpython.cpython-37m-aarch64-linux-gnu.so
Plugin Details:
Name python
Description loader for plugins written in python
Filename /usr/local/lib/gstreamer-1.0/libgstpython.cpython-37m-aarch64-linux-gnu.so
Version 1.14.2
License LGPL
Source module gst-python
Binary package GStreamer GObject Introspection overrides for Python
Origin URL http://gstreamer.freedesktop.org


0 features:

但是,当我尝试加载插件时,gst-inspect 找不到它们,例如
gst-inspect-1.0 --gst-plugin-path=$PWD | grep glbox

我还需要做其他一些配置吗?

编辑:有趣的是,在开发板本身(有效)上,似乎甚至没有安装 gstreamer 库(没有 gst-inspect),但该演示显然通过 Python 在某处使用了 gstreamer。

最佳答案

我会检查 python 插件是否位于 $GST_PLUGIN_PATH/python目录。

关于python - 安装了gst-python,但是找不到插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59931375/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com