/*
* 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 CompareFaces operation.
///
public partial class CompareFacesResponse : AmazonWebServiceResponse
{
private List _faceMatches = new List();
private ComparedSourceImageFace _sourceImageFace;
private OrientationCorrection _sourceImageOrientationCorrection;
private OrientationCorrection _targetImageOrientationCorrection;
private List _unmatchedFaces = new List();
///
/// Gets and sets the property FaceMatches.
///
/// An array of faces in the target image that match the source image face. Each CompareFacesMatch
/// object provides the bounding box, the confidence level that the bounding box contains
/// a face, and the similarity score for the face in the bounding box and the face in
/// the source image.
///
///
public List FaceMatches
{
get { return this._faceMatches; }
set { this._faceMatches = value; }
}
// Check to see if FaceMatches property is set
internal bool IsSetFaceMatches()
{
return this._faceMatches != null && this._faceMatches.Count > 0;
}
///
/// Gets and sets the property SourceImageFace.
///
/// The face in the source image that was used for comparison.
///
///
public ComparedSourceImageFace SourceImageFace
{
get { return this._sourceImageFace; }
set { this._sourceImageFace = value; }
}
// Check to see if SourceImageFace property is set
internal bool IsSetSourceImageFace()
{
return this._sourceImageFace != null;
}
///
/// Gets and sets the property SourceImageOrientationCorrection.
///
/// The value of SourceImageOrientationCorrection
is always null.
///
///
///
/// 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.
///
///
///
/// Amazon Rekognition doesn’t perform image correction for images in .png format and
/// .jpeg images without orientation information in the image Exif metadata. The bounding
/// box coordinates aren't translated and represent the object locations before the image
/// is rotated.
///
///
public OrientationCorrection SourceImageOrientationCorrection
{
get { return this._sourceImageOrientationCorrection; }
set { this._sourceImageOrientationCorrection = value; }
}
// Check to see if SourceImageOrientationCorrection property is set
internal bool IsSetSourceImageOrientationCorrection()
{
return this._sourceImageOrientationCorrection != null;
}
///
/// Gets and sets the property TargetImageOrientationCorrection.
///
/// The value of TargetImageOrientationCorrection
is always null.
///
///
///
/// 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.
///
///
///
/// Amazon Rekognition doesn’t perform image correction for images in .png format and
/// .jpeg images without orientation information in the image Exif metadata. The bounding
/// box coordinates aren't translated and represent the object locations before the image
/// is rotated.
///
///
public OrientationCorrection TargetImageOrientationCorrection
{
get { return this._targetImageOrientationCorrection; }
set { this._targetImageOrientationCorrection = value; }
}
// Check to see if TargetImageOrientationCorrection property is set
internal bool IsSetTargetImageOrientationCorrection()
{
return this._targetImageOrientationCorrection != null;
}
///
/// Gets and sets the property UnmatchedFaces.
///
/// An array of faces in the target image that did not match the source image face.
///
///
public List UnmatchedFaces
{
get { return this._unmatchedFaces; }
set { this._unmatchedFaces = value; }
}
// Check to see if UnmatchedFaces property is set
internal bool IsSetUnmatchedFaces()
{
return this._unmatchedFaces != null && this._unmatchedFaces.Count > 0;
}
}
}