libZSservicesZSamazonka-rekognitionZSamazonka-rekognition
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Rekognition.Types.Label

Description

 
Synopsis

Documentation

data Label Source #

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

See: newLabel smart constructor.

Constructors

Label' 

Fields

  • confidence :: Maybe Double

    Level of confidence.

  • parents :: Maybe [Parent]

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

  • name :: Maybe Text

    The name (label) of the object or scene.

  • instances :: Maybe [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.

Instances

Instances details
Eq Label Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Label

Methods

(==) :: Label -> Label -> Bool #

(/=) :: Label -> Label -> Bool #

Read Label Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Label

Show Label Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Label

Methods

showsPrec :: Int -> Label -> ShowS #

show :: Label -> String #

showList :: [Label] -> ShowS #

Generic Label Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Label

Associated Types

type Rep Label :: Type -> Type #

Methods

from :: Label -> Rep Label x #

to :: Rep Label x -> Label #

NFData Label Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Label

Methods

rnf :: Label -> () #

Hashable Label Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Label

Methods

hashWithSalt :: Int -> Label -> Int #

hash :: Label -> Int #

FromJSON Label Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Label

type Rep Label Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Label

type Rep Label = D1 ('MetaData "Label" "Amazonka.Rekognition.Types.Label" "libZSservicesZSamazonka-rekognitionZSamazonka-rekognition" 'False) (C1 ('MetaCons "Label'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "confidence") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "parents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Parent]))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "instances") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Instance])))))

newLabel :: Label Source #

Create a value of Label with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:confidence:Label', label_confidence - Level of confidence.

$sel:parents:Label', label_parents - The parent labels for a label. The response includes all ancestor labels.

$sel:name:Label', label_name - The name (label) of the object or scene.

$sel:instances:Label', label_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.

label_confidence :: Lens' Label (Maybe Double) Source #

Level of confidence.

label_parents :: Lens' Label (Maybe [Parent]) Source #

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

label_name :: Lens' Label (Maybe Text) Source #

The name (label) of the object or scene.

label_instances :: Lens' Label (Maybe [Instance]) Source #

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.