Skip to content

Label

Source code in docs_src/capo_rekognition/types/label.py
class Label(TypedDict, closed=True):
    name: NotRequired["capo_rekognition.types.string.String"]
    """<p>The name (label) of the object or scene.</p>"""
    confidence: NotRequired["capo_rekognition.types.percent.Percent"]
    """<p>Level of confidence.</p>"""
    instances: NotRequired["capo_rekognition.types.instances.Instances"]
    """<p>If <code>Label</code> represents an object, <code>Instances</code> 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.</p>"""
    parents: NotRequired["capo_rekognition.types.parents.Parents"]
    """<p>The parent labels for a label. The response includes all ancestor labels.</p>"""
    aliases: NotRequired["capo_rekognition.types.label_aliases.LabelAliases"]
    """<p>A list of potential aliases for a given label.</p>"""
    categories: NotRequired["capo_rekognition.types.label_categories.LabelCategories"]
    """<p>A list of the categories associated with a given label.</p>"""

aliases instance-attribute

aliases: NotRequired[LabelAliases]

A list of potential aliases for a given label.

categories instance-attribute

categories: NotRequired[LabelCategories]

A list of the categories associated with a given label.

confidence instance-attribute

confidence: NotRequired[Percent]

Level of confidence.

instances instance-attribute

instances: NotRequired[Instances]

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 instance-attribute

name: NotRequired[String]

The name (label) of the object or scene.

parents instance-attribute

parents: NotRequired[Parents]

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