-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to run example-object-tracker on new device #6
Comments
@joshfox10 Please run:
|
Hello Manoj, thanks for your continued support on this. I tried running your suggestions to no avail. Any other thoughts? pi@raspberrypi:~ $ mdt shell Waiting for a device... Connecting to green-orange at 192.168.100.2 Linux green-orange 4.19.125-mtk #1 SMP PREEMPT Thu Dec 10 02:36:13 UTC 2020 aarch64 The programs included with the Mendel GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Mendel GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Mon Mar 22 19:13:28 2021 mendel@green-orange:~$ cd google-coral 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-1.0 python3-gi gir1.2-gtk-3.0 Reading package lists... Donete Building dependency tree Reading state information... Done gstreamer1.0-plugins-bad is already the newest version (1.14.4+mtk-1). gstreamer1.0-plugins-good is already the newest version (1.14.4+mtk-1). gir1.2-gtk-3.0 is already the newest version (3.24.5-1). python3-gi is already the newest version (3.30.4-1). python3-gst-1.0 is already the newest version (1.14.4-1+b1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. mendel@green-orange:~/google-coral/example-object-tracker/gstreamer$ python3 -m pip 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:1319): dconf-WARNING **: 12:50:40.995: 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
Traceback (most recent call last): File "detect.py", line 218, in
File "detect.py", line 214, in main
File "/home/mendel/google-coral/example-object-tracker/gstreamer/gstreamer.py", line 275, in run_pipeline
File "/home/mendel/google-coral/example-object-tracker/gstreamer/gstreamer.py", line 39, in init
gi.repository.GLib.Error: gst_parse_error: no element "ximagesink" (1) mendel@green-orange:~/google-coral/example-object-tracker/gstreamer$ |
@joshfox10 , |
Has there been any traction on this? Would it be difficult to replace Gstreamer with OpenCV since it appears to be the issue? |
@joshfox10 Did you try to run:
And please share the output of : |
I think the reason for this problem is that the mini dev board is not checked for in gstreamer/gstreamer.py (function detectCoralDevBoard). The same problem was present in the repository "examples-cameras" but there it has been fixed (see patch of 21st of january). Both repositories rely on practically the same gstreamer.py, so I guess the fix from "examples-camera" should work here too. The pipelines have been updated for the mini dev too, I fixed it locally by updating the pipelines. |
@androbi-com Thank you for pointing that out. Will try to get this fixed soon. |
I used the gstreamer/gstreamer.py from the "examples-cameras" and inserted the tracker option. I got a couple errors that I do not understand but the tracker is working on my dev board mini. I do not have much experience with this but If I can get the errors to go away then I will make my first pull request. Thanks @androbi-com ! Deep Sort Next? |
I solved with these installs
|
Hello,
Noob here. I've been trying to get the coral mini dev board to run the example-object-tracker. I've followed all instructions from set up of the device to loading the instructions. Other examples for the dev board work fine. Here's the error I'm getting
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
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)
The text was updated successfully, but these errors were encountered: