RoboCup-SSL / ssl-vision

Shared Vision System For The RoboCup Small Size League
GNU General Public License v3.0
88 stars 109 forks source link

Implemented nonstop recording and writing at limited FPS. Current problem : small stutter when writing. #194

Closed emielsteerneman closed 1 year ago

emielsteerneman commented 1 year ago

This PR adds a second recording mode to SSL-Vision. This mode records frames (.png) and accompanying detection frames (.json) nonstop, and immediately writes these to disk. An optional (and enabled by default) FPS limiter will prevent the PC from being flooded with write operations.

The collection of this data could help develop SSL-Vision. For example, the data could be used to train models for automatic color calibration, as well as adaptive color calibration when lighting conditions change.

Currently, whenever an image is written, there is a slight stutter in that camera its thread. The writing should be done in a different thread, but this has not yet been implemented. Because of this slight stutter, this feature is currently unusable for actual Robocup matches. It is usable for anything outside an official RoboCup match.

emielsteerneman commented 1 year ago

Merged the wrong branch...