Structure containing details about the detected label, including the name, detected instances, parent labels, and level of confidence.

interface Label {
    Aliases?: LabelAlias[];
    Categories?: LabelCategory[];
    Confidence?: number;
    Instances?: Instance[];
    Name?: string;
    Parents?: Parent[];
}

Properties

Aliases?: LabelAlias[]

A list of potential aliases for a given label.

Categories?: LabelCategory[]

A list of the categories associated with a given label.

Confidence?: number

Level of confidence.

Instances?: Instance[]

If Label represents an object, Instances contains the bounding boxes for each instance of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture, apparel or pets.

Name?: string

The name (label) of the object or scene.

Parents?: Parent[]

The parent labels for a label. The response includes all ancestor labels.