Noob在这里,试图在一个新的google mini开发板上运行google-coral example-object-detection。我已经遵循了设置设备和加载示例、模型等的所有说明。当我尝试运行带有或不带有排序跟踪的检测时,我得到了相同的错误,如下所示。问题似乎出在Gstreamer上,但我不知道如何修复。我已经成功地使用了google-coral数据库中的其他示例。
mendel@green-orange:~/google-coral/example-object-tracker/gstreamer$ python3 detect.py
(detect.py:1322): dconf-WARNING **: 13:21:55.165: Unable to open /usr/local/share/dconf/profile/user: Not a directory
Loading ../models/mobilenet_ssd_v2_coco_quant_postprocess_edgetpu.tflite with ../models/coco_labels.txt labels.
Gstreamer pipeline:
v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480,framerate=30/1 ! tee name=t
t. ! queue max-size-buffers=1 leaky=downstream ! videoconvert ! videoscale ! video/x-raw,width=300,height=225 ! videobox name=box autocrop=true
! video/x-raw,format=RGB,width=300,height=300 ! appsink name=appsink emit-signals=true max-buffers=1 drop=true
t. ! queue max-size-buffers=1 leaky=downstream ! videoconvert
! rsvgoverlay name=overlay ! videoconvert ! ximagesink sync=false
Traceback (most recent call last):
File "detect.py", line 218, in <module>
main()
File "detect.py", line 214, in main
videofmt=args.videofmt)
File "/home/mendel/google-coral/example-object-tracker/gstreamer/gstreamer.py", line 275, in run_pipeline
pipeline = GstPipeline(pipeline, user_function, src_size, mot_tracker)
File "/home/mendel/google-coral/example-object-tracker/gstreamer/gstreamer.py", line 39, in __init__
self.pipeline = Gst.parse_launch(pipeline)
gi.repository.GLib.Error: gst_parse_error: no element "ximagesink" (1)从Manoj那里得到了一些很好的反馈来运行:"sudo apt-get install -y gstreamer1.0-plugins-bad gstreamer1.0-plugins-good python3 -gst-1.0python3-gi gir1.2-gtk-3.0 python3 -m pip install svgwrite“
已更新错误:
mendel@green-orange:~/google-coral/example-object-tracker$ cd gstreamer
mendel@green-orange:~/google-coral/example-object-tracker/gstreamer$ sudo apt-get install -y gstreamer1.0-plugins-bad gstreamer1.0-plugins-good python3-gst-1.0 python3-gi gir1.2-gtk-3.0 python3 -m pip install svgwrite
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pip
E: Unable to locate package install
E: Unable to locate package svgwrite
mendel@green-orange:~/google-coral/example-object-tracker/gstreamer$ pip install svgwrite
-bash: pip: command not found
mendel@green-orange:~/google-coral/example-object-tracker/gstreamer$ pip3 install svgwrite
Requirement already satisfied: svgwrite in /home/mendel/.local/lib/python3.7/site-packages (1.4.1)
mendel@green-orange:~/google-coral/example-object-tracker/gstreamer$ python3 detect.py
(detect.py:1316): dconf-WARNING **: 11:46:34.384: Unable to open /usr/local/share/dconf/profile/user: Not a directory
Loading ../models/mobilenet_ssd_v2_coco_quant_postprocess_edgetpu.tflite with ../models/coco_labels.txt labels.
Gstreamer pipeline:
v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480,framerate=30/1 ! tee name=t
t. ! queue max-size-buffers=1 leaky=downstream ! videoconvert ! videoscale ! video/x-raw,width=300,height=225 ! videobox name=box autocrop=true
! video/x-raw,format=RGB,width=300,height=300 ! appsink name=appsink emit-signals=true max-buffers=1 drop=true
t. ! queue max-size-buffers=1 leaky=downstream ! videoconvert
! rsvgoverlay name=overlay ! videoconvert ! ximagesink sync=false
Traceback (most recent call last):
File "detect.py", line 218, in <module>
main()
File "detect.py", line 214, in main
videofmt=args.videofmt)
File "/home/mendel/google-coral/example-object-tracker/gstreamer/gstreamer.py", line 275, in run_pipeline
pipeline = GstPipeline(pipeline, user_function, src_size, mot_tracker)
File "/home/mendel/google-coral/example-object-tracker/gstreamer/gstreamer.py", line 39, in __init__
self.pipeline = Gst.parse_launch(pipeline)
gi.repository.GLib.Error: gst_parse_error: no element "ximagesink" (1)试了另一个建议,还是没有找到joy。还有其他想法吗?
mendel@green-orange:~/google-coral$ cd example-object-tracker
mendel@green-orange:~/google-coral/example-object-tracker$ cd gstreamer
mendel@green-orange:~/google-coral/example-object-tracker/gstreamer$ sudo apt-get install -y gstreamer1.0-plugins-bad gstreamer1.0-plugins-good python3-gst-launch-1.0 rtspsrc location= python3-gi gir1.2-gtk-3.0 python3 -m pip3 install svgwrite
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3-gst-launch-1.0
E: Couldn't find any package by glob 'python3-gst-launch-1.0'
E: Couldn't find any package by regex 'python3-gst-launch-1.0'
E: Unable to locate package rtspsrc
E: Unable to locate package location
E: Unable to locate package pip3
E: Unable to locate package install
E: Unable to locate package svgwrite发布于 2021-09-22 08:31:07
更新:我也有同样的问题,只是安装这些包
sudo apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad gstreamer1.0-tools gstreamer1.0-xhttps://stackoverflow.com/questions/66692187
复制相似问题