Polygon

Properties


Methods

update

update(
   coords: Optional[list] = None, label: Optional[Label] = None,
   text: Optional[str] = None
)

Description

Update this polygon with new coords or new label.

Examples

poly.update(coords=[[0, 0], [0, 1], [1, 1], [0, 0]])

Arguments

  • coords (List, optional) : New coords of this polygon (list of points, each point being a list of 2 int). Defaults to None.

  • label (Label, optional) : New label of this polygon. Defaults to None.

  • text (str, optional) : New ocr text of this polygon. Defaults to None.


delete

delete()

Description

Delete this polygon from the platform.

⚠️ DANGER ZONE: Be very careful here!

Examples

poly.delete()