Can you tell me an example of transferring a full frame via Ethernet TCP Client and Ethernet UDP Client to a PC
Thanks
Can you tell me an example of transferring a full frame via Ethernet TCP Client and Ethernet UDP Client to a PC
Thanks
Hi, please see File→Examples→RPC Library→Webservers→RTSP Video streaming.
The underlying script is here: openmv/scripts/libraries/rtsp.py at master · openmv/openmv · GitHub
Note that it is a bit simplistic. There’s a module called asyncio, which you should rewrite the script to use by leveraging AI coding like Claude if you want to have the system handle multiple connections at once. We’ve found the RT1062 can handle 3 RTSP video streams at the same time, along with 1 web server interface using asyncio. So… like 4 different video streams at once (3 UDP and 1 TCP).
I recommend the microdot framework for a webserver: GitHub - miguelgrinberg/microdot: The impossibly small web framework for Python and MicroPython. · GitHub
Here’s a video streaming example: microdot/examples/streaming/video_stream.py at main · miguelgrinberg/microdot · GitHub
Just replace the test jpegs with the video data coming out of the RT1062 camera. Do to_jpeg(quality=60) on an image.
Thanks !