LaboratoireMecaniqueLille / crappy

Command and Real-time Acquisition Parallelized in Python
https://crappy.readthedocs.io/en/stable/
GNU General Public License v2.0
78 stars 16 forks source link

Send image index on save #109

Closed WeisLeDocto closed 6 months ago

WeisLeDocto commented 6 months ago

Since #107, the Camera Block sends a signal to downstream Blocks when recording images in case no image processing is performed and output Links are present. Originally, the sent message was containing only the timestamp of the saved image and its metadata. However, these two labels did not allow integration with the Synchronizer Block added in #108, as the time label is a special one and the metadata label cannot be interpolated.

To solve this issue, this PR adds a new label 'index', carrying the image index, to the values sent when saving an image. By taking the 'index' label as the reference one for the Synchronizer Block, is is now possible to synchronize signals with the timestamps of recorded images.