bitsy-ai / rpi-object-tracking

Object tracking tutorial using TensorFlow / TensorFlow Lite, Raspberry Pi, Pi Camera, and a Pimoroni Pan-Tilt Hat.
https://medium.com/@grepLeigh/real-time-object-tracking-with-tensorflow-raspberry-pi-and-pan-tilt-hat-2aeaef47e134
MIT License
184 stars 68 forks source link

stream the output to mjpegstreamer or similar? #58

Open adelorenzo opened 3 years ago

adelorenzo commented 3 years ago

Sorry to put this question here but is there a way to stream the output for instance with mjpegstreamer or similar?

Thank you.

leigh-johnson commented 3 years ago

Thanks for this idea, love it! Can you say a little more about how you would be using the video stream?

A few notes for myself:

The picamera library provides a streaming example here. https://picamera.readthedocs.io/en/release-1.13/recipes2.html?highlight=mjpeg#web-streaming

Compositing an mmal overlay might "just work" with this fork of mjpeg-streamer, which supports RaspiCam's mmal as an input source. This fork is used in OctoPrint (web interface for 3D printers) https://github.com/jacksonliam/mjpg-streamer https://github.com/jacksonliam/mjpg-streamer/blob/master/mjpg-streamer-experimental/plugins/input_raspicam/input_raspicam.c

adelorenzo commented 3 years ago

I work with video/blog production and my idea is to stream live via OBS using the output of rpi-object-tracking.

Thank you!!

ncchung commented 2 years ago

Hi @leigh-johnson if you have any further pointer towards making this work, please let us know.

My use case is to view the same view (the rpi camera + overlays from the rpi-object-tracking) on another computer. Another computer may run/configure any apps on windows. If there's an easy way to accomplish this already, love to hear it!