/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the rekognition-2016-06-27.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Rekognition.Model { /// /// This is the response object from the RecognizeCelebrities operation. /// public partial class RecognizeCelebritiesResponse : AmazonWebServiceResponse { private List _celebrityFaces = new List(); private OrientationCorrection _orientationCorrection; private List _unrecognizedFaces = new List(); /// /// Gets and sets the property 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. /// /// public List CelebrityFaces { get { return this._celebrityFaces; } set { this._celebrityFaces = value; } } // Check to see if CelebrityFaces property is set internal bool IsSetCelebrityFaces() { return this._celebrityFaces != null && this._celebrityFaces.Count > 0; } /// /// Gets and sets the property 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. /// /// /// public OrientationCorrection OrientationCorrection { get { return this._orientationCorrection; } set { this._orientationCorrection = value; } } // Check to see if OrientationCorrection property is set internal bool IsSetOrientationCorrection() { return this._orientationCorrection != null; } /// /// Gets and sets the property UnrecognizedFaces. /// /// Details about each unrecognized face in the image. /// /// public List UnrecognizedFaces { get { return this._unrecognizedFaces; } set { this._unrecognizedFaces = value; } } // Check to see if UnrecognizedFaces property is set internal bool IsSetUnrecognizedFaces() { return this._unrecognizedFaces != null && this._unrecognizedFaces.Count > 0; } } }