raillabel.format.num module

class raillabel.format.num.Num(name: str, val: float, id: UUID | None = None, sensor_id: str | None = None)

Bases: object

A number.

classmethod from_json(json: JSONNum) Num

Construct an instant of this class from RailLabel JSON data.

id: UUID | None = None

The unique identifyer of the Num.

name: str

Human readable name describing the annotation.

sensor_id: str | None = None

A reference to the sensor, this value is represented in.

to_json() JSONNum

Export this object into the RailLabel JSON format.

val: float

This is the value of the number object.