Line

Properties

  • annotation_id UUID of Annotation holding this Line

  • coords Coords of this Line

  • label

  • text OCR text of this Polygon

  • attributes Attributes of this Line


Methods

update

update(
   coords: (list|None) = None, label: (Label|None) = None, text: (str|None) = None
)

Description

Update this line with new coords or new label.

Examples

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

Arguments

  • coords (List, optional) : New coords of this Line. Defaults to None.

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

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


delete

delete()

Description

Delete this line from the platform.

⚠️ DANGER ZONE: Be very careful here!

Examples

line.delete()