Giter Club home page Giter Club logo

Comments (9)

emingenc avatar emingenc commented on July 17, 2024 1

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.

manoj7410 avatar manoj7410 commented on July 17, 2024

@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.

joshfox10 avatar joshfox10 commented on July 17, 2024

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.

rrace001 avatar rrace001 commented on July 17, 2024

@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.

joshfox10 avatar joshfox10 commented on July 17, 2024

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.

manoj7410 avatar manoj7410 commented on July 17, 2024

@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.

androbi-com avatar androbi-com commented on July 17, 2024

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.

manoj7410 avatar manoj7410 commented on July 17, 2024

@androbi-com Thank you for pointing that out. Will try to get this fixed soon.

from example-object-tracker.

rrace001 avatar rrace001 commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.