/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Rekognition { namespace Model { class AWS_REKOGNITION_API CompareFacesResult { public: CompareFacesResult(); CompareFacesResult(const Aws::AmazonWebServiceResult& result); CompareFacesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The face in the source image that was used for comparison.

*/ inline const ComparedSourceImageFace& GetSourceImageFace() const{ return m_sourceImageFace; } /** *

The face in the source image that was used for comparison.

*/ inline void SetSourceImageFace(const ComparedSourceImageFace& value) { m_sourceImageFace = value; } /** *

The face in the source image that was used for comparison.

*/ inline void SetSourceImageFace(ComparedSourceImageFace&& value) { m_sourceImageFace = std::move(value); } /** *

The face in the source image that was used for comparison.

*/ inline CompareFacesResult& WithSourceImageFace(const ComparedSourceImageFace& value) { SetSourceImageFace(value); return *this;} /** *

The face in the source image that was used for comparison.

*/ inline CompareFacesResult& WithSourceImageFace(ComparedSourceImageFace&& value) { SetSourceImageFace(std::move(value)); return *this;} /** *

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.

*/ inline const Aws::Vector& GetFaceMatches() const{ return m_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.

*/ inline void SetFaceMatches(const Aws::Vector& value) { m_faceMatches = value; } /** *

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.

*/ inline void SetFaceMatches(Aws::Vector&& value) { m_faceMatches = std::move(value); } /** *

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.

*/ inline CompareFacesResult& WithFaceMatches(const Aws::Vector& value) { SetFaceMatches(value); return *this;} /** *

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.

*/ inline CompareFacesResult& WithFaceMatches(Aws::Vector&& value) { SetFaceMatches(std::move(value)); return *this;} /** *

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.

*/ inline CompareFacesResult& AddFaceMatches(const CompareFacesMatch& value) { m_faceMatches.push_back(value); return *this; } /** *

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.

*/ inline CompareFacesResult& AddFaceMatches(CompareFacesMatch&& value) { m_faceMatches.push_back(std::move(value)); return *this; } /** *

An array of faces in the target image that did not match the source image * face.

*/ inline const Aws::Vector& GetUnmatchedFaces() const{ return m_unmatchedFaces; } /** *

An array of faces in the target image that did not match the source image * face.

*/ inline void SetUnmatchedFaces(const Aws::Vector& value) { m_unmatchedFaces = value; } /** *

An array of faces in the target image that did not match the source image * face.

*/ inline void SetUnmatchedFaces(Aws::Vector&& value) { m_unmatchedFaces = std::move(value); } /** *

An array of faces in the target image that did not match the source image * face.

*/ inline CompareFacesResult& WithUnmatchedFaces(const Aws::Vector& value) { SetUnmatchedFaces(value); return *this;} /** *

An array of faces in the target image that did not match the source image * face.

*/ inline CompareFacesResult& WithUnmatchedFaces(Aws::Vector&& value) { SetUnmatchedFaces(std::move(value)); return *this;} /** *

An array of faces in the target image that did not match the source image * face.

*/ inline CompareFacesResult& AddUnmatchedFaces(const ComparedFace& value) { m_unmatchedFaces.push_back(value); return *this; } /** *

An array of faces in the target image that did not match the source image * face.

*/ inline CompareFacesResult& AddUnmatchedFaces(ComparedFace&& value) { m_unmatchedFaces.push_back(std::move(value)); return *this; } /** *

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.

*/ inline const OrientationCorrection& GetSourceImageOrientationCorrection() const{ return m_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.

*/ inline void SetSourceImageOrientationCorrection(const OrientationCorrection& value) { m_sourceImageOrientationCorrection = value; } /** *

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.

*/ inline void SetSourceImageOrientationCorrection(OrientationCorrection&& value) { m_sourceImageOrientationCorrection = std::move(value); } /** *

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.

*/ inline CompareFacesResult& WithSourceImageOrientationCorrection(const OrientationCorrection& value) { SetSourceImageOrientationCorrection(value); return *this;} /** *

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.

*/ inline CompareFacesResult& WithSourceImageOrientationCorrection(OrientationCorrection&& value) { SetSourceImageOrientationCorrection(std::move(value)); return *this;} /** *

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.

*/ inline const OrientationCorrection& GetTargetImageOrientationCorrection() const{ return m_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.

*/ inline void SetTargetImageOrientationCorrection(const OrientationCorrection& value) { m_targetImageOrientationCorrection = value; } /** *

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.

*/ inline void SetTargetImageOrientationCorrection(OrientationCorrection&& value) { m_targetImageOrientationCorrection = std::move(value); } /** *

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.

*/ inline CompareFacesResult& WithTargetImageOrientationCorrection(const OrientationCorrection& value) { SetTargetImageOrientationCorrection(value); return *this;} /** *

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.

*/ inline CompareFacesResult& WithTargetImageOrientationCorrection(OrientationCorrection&& value) { SetTargetImageOrientationCorrection(std::move(value)); return *this;} private: ComparedSourceImageFace m_sourceImageFace; Aws::Vector m_faceMatches; Aws::Vector m_unmatchedFaces; OrientationCorrection m_sourceImageOrientationCorrection; OrientationCorrection m_targetImageOrientationCorrection; }; } // namespace Model } // namespace Rekognition } // namespace Aws