Add global annotation information (#961)

This commit is contained in:
pollfly 2024-11-12 20:15:44 +02:00 committed by GitHub
parent d190fd68de
commit 81dd7f99e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 20 additions and 0 deletions

View File

@ -55,3 +55,15 @@ Use [`SingleFrame.add_annotation()`](../references/hyperdataset/singleframe.md#a
# labels for the whole frame
frame.add_annotation(labels=['frame level label one','frame level label two'])
```
### Adding a Global Annotation
Add a global annotation that will apply to all frames in a FrameGroup.
Use [`FrameGroup.add_global_annotation()`](../references/hyperdataset/framegroup.md#add_global_annotation) and specify
the [Annotation](../references/hyperdataset/annotation.md) object to add to each frame:
```python
annotation = ImageAnnotation(labels=["cityscape"], confidence=1.0000,)
frame_group.add_global_annotation(annotation=annotation)
```

View File

@ -95,6 +95,14 @@ a dropdown list in the **Current Source** section.
![Frame dropdown menu in FrameGroup](../../img/hyperdatasets/framegroup_01.png)
If an annotation applies to all frames in a FrameGroup, it is displayed with a `Multi Source` indicator:
<div class="max-w-50">
![Multi-source ROI](../../img/hyperdatasets/multi_source_annotation.png)
</div>
## Masks
Use the **MASKS** panel to select which masks to apply over the frame.

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB