/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides information about a face in a target image that matches the source
* image face analyzed by CompareFaces
. The Face
property
* contains the bounding box of the face in the target image. The
* Similarity
property is the confidence that the source image face
* matches the face in the bounding box.See Also:
AWS
* API Reference
Level of confidence that the faces match.
*/ inline double GetSimilarity() const{ return m_similarity; } /** *Level of confidence that the faces match.
*/ inline bool SimilarityHasBeenSet() const { return m_similarityHasBeenSet; } /** *Level of confidence that the faces match.
*/ inline void SetSimilarity(double value) { m_similarityHasBeenSet = true; m_similarity = value; } /** *Level of confidence that the faces match.
*/ inline CompareFacesMatch& WithSimilarity(double value) { SetSimilarity(value); return *this;} /** *Provides face metadata (bounding box and confidence that the bounding box * actually contains a face).
*/ inline const ComparedFace& GetFace() const{ return m_face; } /** *Provides face metadata (bounding box and confidence that the bounding box * actually contains a face).
*/ inline bool FaceHasBeenSet() const { return m_faceHasBeenSet; } /** *Provides face metadata (bounding box and confidence that the bounding box * actually contains a face).
*/ inline void SetFace(const ComparedFace& value) { m_faceHasBeenSet = true; m_face = value; } /** *Provides face metadata (bounding box and confidence that the bounding box * actually contains a face).
*/ inline void SetFace(ComparedFace&& value) { m_faceHasBeenSet = true; m_face = std::move(value); } /** *Provides face metadata (bounding box and confidence that the bounding box * actually contains a face).
*/ inline CompareFacesMatch& WithFace(const ComparedFace& value) { SetFace(value); return *this;} /** *Provides face metadata (bounding box and confidence that the bounding box * actually contains a face).
*/ inline CompareFacesMatch& WithFace(ComparedFace&& value) { SetFace(std::move(value)); return *this;} private: double m_similarity; bool m_similarityHasBeenSet = false; ComparedFace m_face; bool m_faceHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws