SDK reference
mp_sdk.training.AnnotationLabel
class mp_sdk.training.AnnotationLabel(*,
id: int,
title: str,
color: str = 'default'
)
Annotation label object.
Represents a single annotation label provided by the application user. This objects are referenced by mp_sdk.training.ImageAnnotation object.
Attributes
id - int: Unique ID for within current set of labels.
title - str: The label title.
color - str: The label color selected by the user. Provided values are in hex format (i.e.
#ff0000) or a 'default' literal in cases when color was not selected.