Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions aloscene/bounding_boxes_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ def append_labels(self, labels: Labels, name: Union[str, None] = None):
Parameters
----------
labels: aloscene.Labels
Set of labels to attached to the bounding boxes
Set of labels to attached to the BoundingBoxes3D
name: str
If none, the label will be attached without name (if possible). Otherwise if no other unnamed
labels are attached to the bounding boxes, the labels will be added to the set of labels.
labels are attached to the BoundingBoxes3D, the labels will be added to the set of labels.
Examples
--------
>>> boxes3d = aloscene.BoundingBoxes3D([[0.5, 0.5, 0.1, 0.1], [0.2, 0.1, 0.05, 0.05]], "xcyc", False)
Expand All @@ -74,7 +74,7 @@ def append_labels(self, labels: Labels, name: Union[str, None] = None):
>>> boxes3d.labels
>>>
Or using named labels
>>> boxes3d = aloscene.BoundingBoxes3D([[0.5, 0.5, 0.1, 0.1], [0.2, 0.1, 0.05, 0.05]], "xcyc", False)
>>> boxe3d = aloscene.BoundingBoxes3D([[0.5, 0.5, 0.1, 0.1], [0.2, 0.1, 0.05, 0.05]], "xcyc", False)
>>> labels_set_1 = aloscene.Labels([51, 24])
>>> labels_set_2 = aloscene.Labels([51, 24])
>>> boxes3d.append_labels(labels_set_1, "set1")
Expand Down