raillabel.format.seg3d module

class raillabel.format.seg3d.Seg3d(point_ids: list[int], object_id: UUID, sensor_id: str, attributes: dict[str, float | bool | str | list])

Bases: object

The 3D segmentation of a lidar pointcloud.

attributes: dict[str, float | bool | str | list]

Additional information associated with the annotation.

classmethod from_json(json: JSONVec, object_id: UUID) Seg3d

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.

object_id: UUID

The unique identifyer of the real-life object, this annotation belongs to.

point_ids: list[int]

The list of point indices.

sensor_id: str

The unique identifyer of the sensor this annotation is labeled in.

to_json(uid: UUID, object_type: str) JSONVec

Export this object into the RailLabel JSON format.