raillabel.format.bbox module¶
- class raillabel.format.bbox.Bbox(pos: Point2d, size: Size2d, object_id: UUID, sensor_id: str, attributes: dict[str, float | bool | str | list])¶
Bases:
object
A 2D bounding box in an image.
- attributes: dict[str, float | bool | str | list]¶
Additional information associated with the annotation.
- classmethod from_json(json: JSONBbox, object_id: UUID) Bbox ¶
Construct an instant of this class from RailLabel JSON data.
- name(object_type: str) str ¶
Return the name of the annotation used for indexing in the object data pointers.