/* * 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 IndexFaces operation. /// public partial class IndexFacesResponse : AmazonWebServiceResponse { private string _faceModelVersion; private List _faceRecords = new List(); private OrientationCorrection _orientationCorrection; private List _unindexedFaces = new List(); /// /// Gets and sets the property FaceModelVersion. /// /// The version number of the face detection model that's associated with the input collection /// (CollectionId). /// /// public string FaceModelVersion { get { return this._faceModelVersion; } set { this._faceModelVersion = value; } } // Check to see if FaceModelVersion property is set internal bool IsSetFaceModelVersion() { return this._faceModelVersion != null; } /// /// Gets and sets the property FaceRecords. /// /// An array of faces detected and added to the collection. For more information, see /// Searching Faces in a Collection in the Amazon Rekognition Developer Guide. /// /// public List FaceRecords { get { return this._faceRecords; } set { this._faceRecords = value; } } // Check to see if FaceRecords property is set internal bool IsSetFaceRecords() { return this._faceRecords != null && this._faceRecords.Count > 0; } /// /// Gets and sets the property OrientationCorrection. /// /// If your collection is associated with a face detection model that's later than version /// 3.0, the value of OrientationCorrection is always null and no orientation /// information is returned. /// /// /// /// If your collection is associated with a face detection model that's version 3.0 or /// earlier, the following applies: /// ///
  • /// /// If the input image is in .jpeg format, it might contain exchangeable image file format /// (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this /// orientation information to perform image correction - the bounding box coordinates /// are translated to represent object locations after the orientation information in /// the Exif metadata is used to correct the image orientation. Images in .png format /// don't contain Exif metadata. The value of OrientationCorrection is null. /// ///
  • /// /// If the image doesn't contain orientation information in its Exif metadata, Amazon /// Rekognition returns an estimated orientation (ROTATE_0, ROTATE_90, ROTATE_180, ROTATE_270). /// Amazon Rekognition doesn’t perform image correction for images. The bounding box coordinates /// aren't translated and represent the object locations before the image is rotated. /// ///
/// /// Bounding box information is returned in the FaceRecords array. You can /// get the version of the face detection model by calling DescribeCollection. /// /// ///
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 UnindexedFaces. /// /// An array of faces that were detected in the image but weren't indexed. They weren't /// indexed because the quality filter identified them as low quality, or the MaxFaces /// request parameter filtered them out. To use the quality filter, you specify the QualityFilter /// request parameter. /// /// public List UnindexedFaces { get { return this._unindexedFaces; } set { this._unindexedFaces = value; } } // Check to see if UnindexedFaces property is set internal bool IsSetUnindexedFaces() { return this._unindexedFaces != null && this._unindexedFaces.Count > 0; } } }