File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,10 @@ class Camera(Block):
28
28
can accept input Links is when an ``image_generator`` is defined, or when
29
29
defining a ``software_trig_label``. If ``save_images`` is set to :obj:`True`,
30
30
and if an output Link is present, a message is sent to downstream Blocks at
31
- each saved image, containing the timestamp and the metadata of the image.
32
- They are respectively carried by the `'t(s)'` and `'meta'` labels. This is
33
- useful for performing an action conditionally at each new saved image.
31
+ each saved image, containing the timestamp, the index, and the metadata of
32
+ the image. They are respectively carried by the `'t(s)'`, `'img_index'` and
33
+ `'meta'` labels. This is useful for performing an action conditionally at
34
+ each new saved image.
34
35
35
36
Most of the time, this Block is used for recording to the desired location
36
37
the images it acquires. Optionally, the images can also be displayed in a
Original file line number Diff line number Diff line change @@ -71,8 +71,8 @@ def __init__(self,
71
71
backend ``'npy'``, that saves the images as raw numpy arrays.
72
72
send_msg: In case no processing is performed, and if output Links are
73
73
present, this argument is set to :obj:`True`. In that case, a message
74
- containing the timestamp and the metadata of the image is sent to
75
- downstream Blocks each time an image is saved.
74
+ containing the timestamp, the index, and the metadata of the image is
75
+ sent to downstream Blocks each time an image is saved.
76
76
77
77
.. versionadded:: 2.0.5
78
78
"""
@@ -241,4 +241,6 @@ def loop(self) -> None:
241
241
242
242
# Sending the results to the downstream Blocks
243
243
if self ._send_msg :
244
- self .send ({'t(s)' : self .metadata ['t(s)' ], 'meta' : self .metadata })
244
+ self .send ({'t(s)' : self .metadata ['t(s)' ],
245
+ 'img_index' : self .metadata ['ImageUniqueID' ],
246
+ 'meta' : self .metadata })
You can’t perform that action at this time.
0 commit comments