amazonka-rekognition-2.0: Amazon Rekognition SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Rekognition.RecognizeCelebrities

Description

Returns an array of celebrities recognized in the input image. For more information, see Recognizing celebrities in the Amazon Rekognition Developer Guide.

RecognizeCelebrities returns the 64 largest faces in the image. It lists the recognized celebrities in the CelebrityFaces array and any unrecognized faces in the UnrecognizedFaces array. RecognizeCelebrities doesn't return celebrities whose faces aren't among the largest 64 faces in the image.

For each celebrity recognized, RecognizeCelebrities returns a Celebrity object. The Celebrity object contains the celebrity name, ID, URL links to additional information, match confidence, and a ComparedFace object that you can use to locate the celebrity's face on the image.

Amazon Rekognition doesn't retain information about which images a celebrity has been recognized in. Your application must store this information and use the Celebrity ID property as a unique identifier for the celebrity. If you don't store the celebrity name or additional information URLs returned by RecognizeCelebrities, you will need the ID to identify the celebrity in a call to the GetCelebrityInfo operation.

You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.

For an example, see Recognizing celebrities in an image in the Amazon Rekognition Developer Guide.

This operation requires permissions to perform the rekognition:RecognizeCelebrities operation.

Synopsis

Creating a Request

data RecognizeCelebrities Source #

See: newRecognizeCelebrities smart constructor.

Constructors

RecognizeCelebrities' 

Fields

  • image :: Image

    The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is not supported.

    If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes passed using the Bytes field. For more information, see Images in the Amazon Rekognition developer guide.

Instances

Instances details
ToJSON RecognizeCelebrities Source # 
Instance details

Defined in Amazonka.Rekognition.RecognizeCelebrities

ToHeaders RecognizeCelebrities Source # 
Instance details

Defined in Amazonka.Rekognition.RecognizeCelebrities

ToPath RecognizeCelebrities Source # 
Instance details

Defined in Amazonka.Rekognition.RecognizeCelebrities

ToQuery RecognizeCelebrities Source # 
Instance details

Defined in Amazonka.Rekognition.RecognizeCelebrities

AWSRequest RecognizeCelebrities Source # 
Instance details

Defined in Amazonka.Rekognition.RecognizeCelebrities

Associated Types

type AWSResponse RecognizeCelebrities #

Generic RecognizeCelebrities Source # 
Instance details

Defined in Amazonka.Rekognition.RecognizeCelebrities

Associated Types

type Rep RecognizeCelebrities :: Type -> Type #

Read RecognizeCelebrities Source # 
Instance details

Defined in Amazonka.Rekognition.RecognizeCelebrities

Show RecognizeCelebrities Source # 
Instance details

Defined in Amazonka.Rekognition.RecognizeCelebrities

NFData RecognizeCelebrities Source # 
Instance details

Defined in Amazonka.Rekognition.RecognizeCelebrities

Methods

rnf :: RecognizeCelebrities -> () #

Eq RecognizeCelebrities Source # 
Instance details

Defined in Amazonka.Rekognition.RecognizeCelebrities

Hashable RecognizeCelebrities Source # 
Instance details

Defined in Amazonka.Rekognition.RecognizeCelebrities

type AWSResponse RecognizeCelebrities Source # 
Instance details

Defined in Amazonka.Rekognition.RecognizeCelebrities

type Rep RecognizeCelebrities Source # 
Instance details

Defined in Amazonka.Rekognition.RecognizeCelebrities

type Rep RecognizeCelebrities = D1 ('MetaData "RecognizeCelebrities" "Amazonka.Rekognition.RecognizeCelebrities" "amazonka-rekognition-2.0-EaCrS9R3rWADqefEZvOx5B" 'False) (C1 ('MetaCons "RecognizeCelebrities'" 'PrefixI 'True) (S1 ('MetaSel ('Just "image") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Image)))

newRecognizeCelebrities Source #

Create a value of RecognizeCelebrities 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:image:RecognizeCelebrities', recognizeCelebrities_image - The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is not supported.

If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes passed using the Bytes field. For more information, see Images in the Amazon Rekognition developer guide.

Request Lenses

recognizeCelebrities_image :: Lens' RecognizeCelebrities Image Source #

The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is not supported.

If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes passed using the Bytes field. For more information, see Images in the Amazon Rekognition developer guide.

Destructuring the Response

data RecognizeCelebritiesResponse Source #

See: newRecognizeCelebritiesResponse smart constructor.

Constructors

RecognizeCelebritiesResponse' 

Fields

  • celebrityFaces :: Maybe [Celebrity]

    Details about each celebrity found in the image. Amazon Rekognition can detect a maximum of 64 celebrities in an image. Each celebrity object includes the following attributes: Face, Confidence, Emotions, Landmarks, Pose, Quality, Smile, Id, KnownGender, MatchConfidence, Name, Urls.

  • orientationCorrection :: Maybe OrientationCorrection

    Support for estimating image orientation using the the OrientationCorrection field has ceased as of August 2021. Any returned values for this field included in an API response will always be NULL.

    The orientation of the input image (counterclockwise direction). If your application displays the image, you can use this value to correct the orientation. The bounding box coordinates returned in CelebrityFaces and UnrecognizedFaces represent face locations before the image orientation is corrected.

    If the input image is in .jpeg format, it might contain exchangeable image (Exif) metadata that includes the image's orientation. If so, and the Exif metadata for the input image populates the orientation field, the value of OrientationCorrection is null. The CelebrityFaces and UnrecognizedFaces bounding box coordinates represent face locations after Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.

  • unrecognizedFaces :: Maybe [ComparedFace]

    Details about each unrecognized face in the image.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic RecognizeCelebritiesResponse Source # 
Instance details

Defined in Amazonka.Rekognition.RecognizeCelebrities

Associated Types

type Rep RecognizeCelebritiesResponse :: Type -> Type #

Read RecognizeCelebritiesResponse Source # 
Instance details

Defined in Amazonka.Rekognition.RecognizeCelebrities

Show RecognizeCelebritiesResponse Source # 
Instance details

Defined in Amazonka.Rekognition.RecognizeCelebrities

NFData RecognizeCelebritiesResponse Source # 
Instance details

Defined in Amazonka.Rekognition.RecognizeCelebrities

Eq RecognizeCelebritiesResponse Source # 
Instance details

Defined in Amazonka.Rekognition.RecognizeCelebrities

type Rep RecognizeCelebritiesResponse Source # 
Instance details

Defined in Amazonka.Rekognition.RecognizeCelebrities

type Rep RecognizeCelebritiesResponse = D1 ('MetaData "RecognizeCelebritiesResponse" "Amazonka.Rekognition.RecognizeCelebrities" "amazonka-rekognition-2.0-EaCrS9R3rWADqefEZvOx5B" 'False) (C1 ('MetaCons "RecognizeCelebritiesResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "celebrityFaces") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Celebrity])) :*: S1 ('MetaSel ('Just "orientationCorrection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OrientationCorrection))) :*: (S1 ('MetaSel ('Just "unrecognizedFaces") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ComparedFace])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newRecognizeCelebritiesResponse Source #

Create a value of RecognizeCelebritiesResponse 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:celebrityFaces:RecognizeCelebritiesResponse', recognizeCelebritiesResponse_celebrityFaces - Details about each celebrity found in the image. Amazon Rekognition can detect a maximum of 64 celebrities in an image. Each celebrity object includes the following attributes: Face, Confidence, Emotions, Landmarks, Pose, Quality, Smile, Id, KnownGender, MatchConfidence, Name, Urls.

$sel:orientationCorrection:RecognizeCelebritiesResponse', recognizeCelebritiesResponse_orientationCorrection - Support for estimating image orientation using the the OrientationCorrection field has ceased as of August 2021. Any returned values for this field included in an API response will always be NULL.

The orientation of the input image (counterclockwise direction). If your application displays the image, you can use this value to correct the orientation. The bounding box coordinates returned in CelebrityFaces and UnrecognizedFaces represent face locations before the image orientation is corrected.

If the input image is in .jpeg format, it might contain exchangeable image (Exif) metadata that includes the image's orientation. If so, and the Exif metadata for the input image populates the orientation field, the value of OrientationCorrection is null. The CelebrityFaces and UnrecognizedFaces bounding box coordinates represent face locations after Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.

$sel:unrecognizedFaces:RecognizeCelebritiesResponse', recognizeCelebritiesResponse_unrecognizedFaces - Details about each unrecognized face in the image.

$sel:httpStatus:RecognizeCelebritiesResponse', recognizeCelebritiesResponse_httpStatus - The response's http status code.

Response Lenses

recognizeCelebritiesResponse_celebrityFaces :: Lens' RecognizeCelebritiesResponse (Maybe [Celebrity]) Source #

Details about each celebrity found in the image. Amazon Rekognition can detect a maximum of 64 celebrities in an image. Each celebrity object includes the following attributes: Face, Confidence, Emotions, Landmarks, Pose, Quality, Smile, Id, KnownGender, MatchConfidence, Name, Urls.

recognizeCelebritiesResponse_orientationCorrection :: Lens' RecognizeCelebritiesResponse (Maybe OrientationCorrection) Source #

Support for estimating image orientation using the the OrientationCorrection field has ceased as of August 2021. Any returned values for this field included in an API response will always be NULL.

The orientation of the input image (counterclockwise direction). If your application displays the image, you can use this value to correct the orientation. The bounding box coordinates returned in CelebrityFaces and UnrecognizedFaces represent face locations before the image orientation is corrected.

If the input image is in .jpeg format, it might contain exchangeable image (Exif) metadata that includes the image's orientation. If so, and the Exif metadata for the input image populates the orientation field, the value of OrientationCorrection is null. The CelebrityFaces and UnrecognizedFaces bounding box coordinates represent face locations after Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.