raillabel.json_format.poly2d module¶
- class raillabel.json_format.poly2d.JSONPoly2d(*, name: str, val: list[float | str], closed: bool, mode: Literal['MODE_POLY2D_ABSOLUTE'], coordinate_system: str, uid: UUID | None = None, attributes: JSONAttributes | None = None)¶
Bases:
_JSONFormatBase
A 2D polyline defined as a sequence of 2D points.
- _abc_impl = <_abc._abc_data object>¶
- attributes: JSONAttributes | None¶
- closed: bool¶
A boolean that defines whether the polyline is closed or not. In case it is closed, it is assumed that the last point of the sequence is connected with the first one.
- coordinate_system: str¶
Name of the coordinate system in respect of which this object data is expressed.
- mode: Literal['MODE_POLY2D_ABSOLUTE']¶
Mode of the polyline describes how the points should be arranged in the images. MODE_POLY2D_ABSOLUTE means that any point defined by an x-value followed by a y-value is the absolute position.
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].