OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Object Detection with Mediapipe and Python high latency (long delay between webcam stream and detection)

  • Thread starter Thread starter Omar Khaled
  • Start date Start date
O

Omar Khaled

Guest
I am trying to use object detection live stream example with mediapipe Code using EfficientDet-Lite0 model but i noticed a long delay between the detection and the live stream.

I tried lowering the resolution to 320*240 but it didn't help also I tested it on Raspberry pi 5 with picamera with the same resolution but the problem was the same,also tested different python versions ( 3.9 , 3.12.1). Lastly tried a custom tflite model that works perfectly on the mediapipe studio Mediapipe Studio Object Detection Demo but doesn't work with Python on Windows neither on Rpi OS 64 bit (bookworm). Did anybody solved this issue ? This video demonstrates the issue Live stream object detection delay This GIF demonstrates it working on Mediapipe studio Live stream object detection MP Studio
<p>I am trying to use object detection live stream example with mediapipe <a href="https://github.com/google-ai-edge/m.../python/object_detector_live_stream/detect.py" rel="nofollow noreferrer">Code</a> using EfficientDet-Lite0 model but i noticed a long delay between the detection and the live stream.</p>
<p>I tried lowering the resolution to 320*240 but it didn't help also I tested it on Raspberry pi 5 with picamera with the same resolution but the problem was the same,also tested different python versions ( 3.9 , 3.12.1).
Lastly tried a custom tflite model that works perfectly on the mediapipe studio <a href="https://mediapipe-studio.webapps.google.com/studio/demo/object_detector" rel="nofollow noreferrer">Mediapipe Studio Object Detection Demo</a>
but doesn't work with Python on Windows neither on Rpi OS 64 bit (bookworm).
Did anybody solved this issue ?
This video demonstrates the issue <a href="https://drive.google.com/file/d/1r125-YQeUs1WIT2Lm0HopxiaawLEQoIF/view?usp=sharing" rel="nofollow noreferrer">Live stream object detection delay</a>
This GIF demonstrates it working on Mediapipe studio <a href="https://media.giphy.com/media/v1.Y2...ZfYnlfaWQmY3Q9Zw/EFL7mICZzodjy6oXHS/giphy.gif" rel="nofollow noreferrer">Live stream object detection MP Studio</a></p>
 
Top