AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Rekognition::Types::Label

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

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

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#confidenceFloat

Level of confidence.

Returns:

  • (Float)

    Level of confidence.

#instancesArray<Types::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.

Returns:

  • (Array<Types::Instance>)

    If Label represents an object, Instances contains the bounding boxes for each instance of the detected object.

#nameString

The name (label) of the object or scene.

Returns:

  • (String)

    The name (label) of the object or scene.

#parentsArray<Types::Parent>

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

Returns: