raillabel.format.point2d module¶ class raillabel.format.point2d.Point2d(x: float, y: float)¶ Bases: object A 2d point in an image. classmethod from_json(json: tuple[float, float]) → Point2d¶ 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 x-coordinate of the point in the image in pixels from the left. y: float¶ The y-coordinate of the point in the image in pixels from the top.