samlab.dashboard.backend.limbo module¶
Backends to integrate Limbo datasets with the dashboard.
- class samlab.dashboard.backend.limbo.ImageCollection(*, name, dataset, readonly=True)[source]¶
Bases:
ImageCollection
ImageCollection
backend for visualizing a specification dataset in the Samlab Dashboard.- Parameters
- bboxes(index)[source]¶
Return bounding box annotations applied to the image with the given index.
- Parameters
index (
int
, required) – Index of the image.- Returns
bboxes – Sequence of bounding boxes. Each box is a dict containing “left”, “top”, “width”, “height”, “category”, and “color” values. The bounding box position and size values are measured in absolute pixels. The color value is a string containing a CSS-compatible color specification.
- Return type
- property name¶
Unique identifier for this instance.
- put_bboxes(index, bboxes)[source]¶
Set bounding box annotations for the image with the given index.
Note that this overrides all bounding box annotations for the image.