Comments (9)
I solved with these installs
sudo apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad gstreamer1.0-tools gstreamer1.0-x
from example-object-tracker.
@joshfox10 Please run:
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
from example-object-tracker.
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
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)
mendel@green-orange:~/google-coral/example-object-tracker/gstreamer$
from example-object-tracker.
@joshfox10 ,
I am new to this also and I am having the exact same issue on my Coral Dev Board Mini. The other camera demos work but just not this one. I did notice in your output that v4l2src device=/dev/video0. should this be dev/video1 ? The connect a camera tutorial states that the Coral camera will show up as dev/video1. I am assuming you are using the Coral Camera. This did not fix it for me but I thought I should mention it just in case.
from example-object-tracker.
Has there been any traction on this? Would it be difficult to replace Gstreamer with OpenCV since it appears to be the issue?
from example-object-tracker.
@joshfox10 Did you try to run:
python3 detect.py --tracker sort
?
And please share the output of : bash install_requirements.sh
from example-object-tracker.
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.
from example-object-tracker.
@androbi-com Thank you for pointing that out. Will try to get this fixed soon.
from example-object-tracker.
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?
from example-object-tracker.
Related Issues (20)
- Colour-space displaying incorrectly HOT 2
- Coral Dev Mini Support - PVR Error HOT 4
- Send to udp sink HOT 3
- Segmentation Fault during GStreamer Pipeline HOT 3
- install_requirements.sh errors out: fatal error: Python.h HOT 2
- Video is different shades of red HOT 3
- Problem with installing svgwrite HOT 6
- No install script for tracker HOT 2
- Failed to prepare for TPU HOT 6
- Pretty high system load on RPI 4 HOT 18
- Trying to periodically switch off camera in detect.py HOT 1
- How do I use a video as an input instead of the camera HOT 1
- ModuleNotFoundError: No module named 'sort' HOT 3
- This example doesn't work too HOT 5
- ModuleNotFoundError: No module named 'sort' HOT 2
- rtsp source is not working HOT 15
- Reason for using gstreamer HOT 3
- Error while processing websocket request HOT 1
- Saving output to file instead of display device (DevBoard) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from example-object-tracker.