/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.rekognition.model; import java.io.Serializable; public class RecognizeCelebritiesResult implements Serializable { /** *
* 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.
*
* Details about each unrecognized face in the image. *
*/ private java.util.List* 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.
*
* Constraints:
* Allowed Values: ROTATE_0, ROTATE_90, ROTATE_180, ROTATE_270
*/
private String orientationCorrection;
/**
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param 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.
*
* 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.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param 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.
*
* Details about each unrecognized face in the image. *
* * @return* Details about each unrecognized face in the image. *
*/ public java.util.List* Details about each unrecognized face in the image. *
* * @param unrecognizedFaces* Details about each unrecognized face in the image. *
*/ public void setUnrecognizedFaces(java.util.Collection* Details about each unrecognized face in the image. *
** Returns a reference to this object so that method calls can be chained * together. * * @param unrecognizedFaces
* Details about each unrecognized face in the image. *
* @return A reference to this updated object so that method calls can be * chained together. */ public RecognizeCelebritiesResult withUnrecognizedFaces(ComparedFace... unrecognizedFaces) { if (getUnrecognizedFaces() == null) { this.unrecognizedFaces = new java.util.ArrayList* Details about each unrecognized face in the image. *
** Returns a reference to this object so that method calls can be chained * together. * * @param unrecognizedFaces
* Details about each unrecognized face in the image. *
* @return A reference to this updated object so that method calls can be * chained together. */ public RecognizeCelebritiesResult withUnrecognizedFaces( java.util.Collection* 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.
*
* Constraints:
* 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.
*
* Allowed Values: ROTATE_0, ROTATE_90, ROTATE_180, ROTATE_270
*
* @return
* 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.
*
* 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.
*
* Constraints:
* 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.
*
* Allowed Values: ROTATE_0, ROTATE_90, ROTATE_180, ROTATE_270
*
* @param orientationCorrection
* 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.
*
* 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.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* 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.
*
* Allowed Values: ROTATE_0, ROTATE_90, ROTATE_180, ROTATE_270
*
* @param orientationCorrection
* 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.
*
* 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.
*
* Constraints:
* 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.
*
* Allowed Values: ROTATE_0, ROTATE_90, ROTATE_180, ROTATE_270
*
* @param orientationCorrection
* 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.
*
* 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.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* 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.
*
* Allowed Values: ROTATE_0, ROTATE_90, ROTATE_180, ROTATE_270
*
* @param orientationCorrection
* 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.
*