srobo / sr-robot3-j5

Python 3 API for Student Robotics Kit - Built with j5
MIT License
4 stars 1 forks source link

Send processed frames over MQTT #90

Closed WillB97 closed 1 year ago

WillB97 commented 1 year ago

Any frames that are processed for markers are also sent over MQTT on the topic of 'camera/annotated'. The frames can then be displayed in the web interface, see: https://github.com/srobo/kit-ui/tree/camera

Screenshot 2022-12-30 at 19 53 30

The frame encoding and sending is done in background threads for near-zero overhead on image processing, see https://github.com/WillB97/april_vision/blob/0.3.0/april_vision/j5/april_camera.py#L198.