class scenebox.models.annotation.Label(label, class_name=None, category_id=None, confidence=None)

Holds the coordinates and metadata of a Label.

Several Labels can be compiled together to form a ClassificationAnnotation.

  • label – Name of the labelled region.

  • class_name – Name of the class that the label belongs to.

  • category_id – Label category ID.

  • confidence – Labelling confidence. Must be between 0 and 1.