Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send signal when recording images with Camera Block #107

Merged
merged 3 commits into from
Feb 27, 2024

Conversation

WeisLeDocto
Copy link
Member

Since Crappy 2.0.0, the Camera Block never outputs messages to downstream Blocks. That is because the acquisition, display, and recording of the images are all managed from within the Camera Block. However, as pointed out in #98, there is currently no way for other Blocks to know when an image is saved. This feature could be useful when performing image analysis in post-processing, in case actions need to be performed during the test, to synchronize with the timestamps of the saved images.

With this PR, the Camera Block now sends messages containing the timestamp and metadata of each recorded image. It does so in case all these conditions are true:

  • the image recording is enabled
  • no image-processing is performed
  • the Camera Block has at least one output Link

The timestamp and metadata are respectively sent over the labels 't(s)' and 'meta'. A new example was added to demonstrate the new behavior, and the documentation was updated.

@WeisLeDocto WeisLeDocto self-assigned this Feb 27, 2024
@WeisLeDocto WeisLeDocto linked an issue Feb 27, 2024 that may be closed by this pull request
@WeisLeDocto WeisLeDocto merged commit 4b87b72 into develop Feb 27, 2024
19 checks passed
@WeisLeDocto WeisLeDocto deleted the feature/send_signal_recording_camera_block branch February 27, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nom des fichiers images
1 participant