raillabel.json_format.element_data_pointer module

class raillabel.json_format.element_data_pointer.JSONElementDataPointer(*, attribute_pointers: dict[str, Literal['num', 'text', 'boolean', 'vec']], frame_intervals: list[JSONFrameInterval], type: Literal['bbox', 'num', 'poly2d', 'poly3d', 'cuboid', 'vec'])

Bases: _JSONFormatBase

A pointer to element data of elements.

It is indexed by ‘name’, and containing information about the element data type, for example, bounding box, cuboid, and the frame intervals in which this element_data exists within an element. That means, these pointers can be used to explore element data dynamic information within the JSON content.

_abc_impl = <_abc._abc_data object>
attribute_pointers: dict[str, Literal['num', 'text', 'boolean', 'vec']]

This is a JSON object which contains pointers to the attributes of the element data pointed by this pointer. The attributes pointer keys shall be the ‘name’ of the attribute of the element data this pointer points to.

frame_intervals: list[JSONFrameInterval]

List of frame intervals of the element data pointed by this pointer.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

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

type: Literal['bbox', 'num', 'poly2d', 'poly3d', 'cuboid', 'vec']

Type of the element data pointed by this pointer.