raillabel.json_format.scene module

class raillabel.json_format.scene.JSONScene(*, openlabel: JSONSceneContent)

Bases: _JSONFormatBase

Root RailLabel object.

_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

openlabel: JSONSceneContent
class raillabel.json_format.scene.JSONSceneContent(*, metadata: JSONMetadata, coordinate_systems: dict[str, JSONCoordinateSystem] | None = None, streams: dict[str, JSONStreamCamera | JSONStreamOther | JSONStreamRadar] | None = None, objects: dict[UUID, JSONObject] | None = None, frames: dict[int, JSONFrame] | None = None, frame_intervals: list[JSONFrameInterval] | None = None)

Bases: _JSONFormatBase

Container of all scene content.

_abc_impl = <_abc._abc_data object>
coordinate_systems: dict[str, JSONCoordinateSystem] | None
frame_intervals: list[JSONFrameInterval] | None
frames: dict[int, JSONFrame] | None
metadata: JSONMetadata
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

objects: dict[UUID, JSONObject] | None
streams: dict[str, JSONStreamCamera | JSONStreamOther | JSONStreamRadar] | None