Line¶
-
class
scenebox.models.annotation.
Line
(label=None, uid=None, confidence=None, attributes=None, coordinates=None, complete=False, category_id=None)¶ Holds the coordinates and metadata of a single Line.
Several Lines can be compiled together to form a Line annotation.
- Variables:
coordinates – An ordered list of each coordinate inside the line. Each coordinate must be provided in the form (x, y). Every x, y value must be positive. Connections are assumed between consecutive coordinates.
label – Name of the region highlighted with the Line.
complete – If True, denotes that the annotation is complete. Otherwise, categorizes the annotation as incomplete.
category_id – Label category ID.
confidence – Labelling confidence. Must be between 0 and 1.
attributes – Additional line metadata.