google-coral / project-posenet

Human Pose Detection on EdgeTPU
Apache License 2.0
550 stars 156 forks source link

An exception occurs when running anonymizer.py on the Raspberry Pi 4B&USB Accelerator #69

Open 3344393853 opened 3 years ago

3344393853 commented 3 years ago

During the operation of anonymizer.py, when everyone re-entered the screen, there was a problem: the body line drawing in each frame before will not disappear, and it has been piled up in the screen.

hjonnala commented 3 years ago

Hi, please provide the following details:

  1. python version
  2. Operating system
  3. steps to reproduce the issue.
3344393853 commented 3 years ago

Hi raspi4B + ubuntu Mate20.04 + Coral USB Accelerator + python3.8.8

aaa@aaa:~/work/coral/00_posenet$ python3 anonymizer.py /home/aaa/work/coral/00_posenet/gstreamer.py:15: PyGIWarning: Gst was imported without specifying a version first. Use gi.require_version('Gst', '1.0') before import to ensure that the right version gets loaded. from gi.repository import GLib, GObject, Gst, GstBase, GstVideo, Gtk /home/aaa/work/coral/00_posenet/gstreamer.py:15: PyGIWarning: GstBase was imported without specifying a version first. Use gi.require_version('GstBase', '1.0') before import to ensure that the right version gets loaded. from gi.repository import GLib, GObject, Gst, GstBase, GstVideo, Gtk /home/aaa/work/coral/00_posenet/gstreamer.py:15: PyGIWarning: GstVideo was imported without specifying a version first. Use gi.require_version('GstVideo', '1.0') before import to ensure that the right version gets loaded. from gi.repository import GLib, GObject, Gst, GstBase, GstVideo, Gtk /home/aaa/work/coral/00_posenet/gstreamer.py:15: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded. from gi.repository import GLib, GObject, Gst, GstBase, GstVideo, Gtk Loading model: models/mobilenet/posenet_mobilenet_v1_075_481_641_quant_decoder_edgetpu.tflite Gstreamer pipeline: v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480,framerate=30/1 ! decodebin ! videoflip method=clockwise video-direction=identity ! tee name=t t. ! queue max-size-buffers=1 leaky=downstream ! videoconvert ! freezer name=freezer ! rsvgoverlay name=overlay ! videoconvert ! autovideosink t. ! queue max-size-buffers=1 leaky=downstream ! videoconvert ! videoscale ! video/x-raw,width=641,height=480 ! videobox name=box autocrop=true ! video/x-raw,format=RGB,width=641,height=481 ! appsink name=appsink emit-signals=true max-buffers=1 drop=true

Waiting for everyone to leave the frame... Waiting for everyone to leave the frame... Waiting for everyone to leave the frame... Waiting for everyone to leave the frame... Waiting for everyone to leave the frame... Waiting for everyone to leave the frame... Waiting for everyone to leave the frame... Waiting for everyone to leave the frame... Waiting for everyone to leave the frame... Waiting for everyone to leave the frame... Waiting for everyone to leave the frame... Waiting for everyone to leave the frame... Waiting for everyone to leave the frame... Waiting for everyone to leave the frame... Waiting for everyone to leave the frame... Background set.

The result on the screen is like this: 2021-07-13 13-48-53 创建的截图

hjonnala commented 3 years ago

@3344393853 try the following command let us know still you are facing issues.

python3 anonymizer.py --mirror

yishinhung commented 3 years ago

@3344393853 try the following command let us know still you are facing issues.

python3 anonymizer.py --mirror

@hjonnala I try the following command still encounter the issue python3 anonymizer.py --mirror

hjonnala commented 3 years ago

@yishinhung Thanks for confirming. It is a bug on our side, we are working on it. Will let you know once it is resolved.