PolygonCoordinates Objects
__init__
values
List[PointCoordinate] - A list of PointCoordinate objects defining the polygon.polygons
List[List[List[PointCoordinate]]] - A list of polygons, where each polygon is a list of contours, where each contour is a list of points.
from_dict
-
d
dict - A dictionary containing polygon coordinates information.
Legacy format:New format:
PolygonCoordinates
- An instance of PolygonCoordinates.
to_dict
dict
- A dictionary representation of the polygon coordinates.