raillabel.json_format.stream_radar module

class raillabel.json_format.stream_radar.JSONIntrinsicsRadar(*, resolution_px_per_m: float, height_px: int, width_px: int)

Bases: _JSONFormatBase

JSON object defining an instance of the intrinsic parameters of a radar.

_abc_impl = <_abc._abc_data object>
height_px: int

Height of the radar output in pixel.

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

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

resolution_px_per_m: float

Number correlating pixel in the output image to a position relative to the sensor in meters.

width_px: int

Width of the radar output in pixel.

class raillabel.json_format.stream_radar.JSONStreamRadar(*, type: Literal['radar'], stream_properties: JSONStreamRadarProperties, uri: str | None = None, description: str | None = None)

Bases: _JSONFormatBase

A stream describes the source of a data sequence, usually a sensor.

This specific object contains the intrinsics of a radar sensor.

_abc_impl = <_abc._abc_data object>
description: str | None

Description of the stream.

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

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

stream_properties: JSONStreamRadarProperties

Intrinsic calibration of the stream.

type: Literal['radar']

A string encoding the type of the stream.

uri: str | None

A string encoding the subdirectory containing the sensor files.

class raillabel.json_format.stream_radar.JSONStreamRadarProperties(*, intrinsics_radar: JSONIntrinsicsRadar)

Bases: _JSONFormatBase

Intrinsic calibration of the stream.

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

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