raillabel.format.size2d module

class raillabel.format.size2d.Size2d(x: float, y: float)

Bases: object

The size of a rectangle in a 2d image.

classmethod from_json(json: tuple[float, float]) Size2d

Construct an instant of this class from RailLabel JSON data.

to_json() tuple[float, float]

Export this object into the RailLabel JSON format.

x: float

The size along the x-axis.

y: float

The size along the y-axis.