/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Rekognition { namespace Model { /** *

A face that IndexFaces detected, but didn't index. Use the * Reasons response attribute to determine why a face wasn't * indexed.

See Also:

AWS * API Reference

*/ class UnindexedFace { public: AWS_REKOGNITION_API UnindexedFace(); AWS_REKOGNITION_API UnindexedFace(Aws::Utils::Json::JsonView jsonValue); AWS_REKOGNITION_API UnindexedFace& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

An array of reasons that specify why a face wasn't indexed.

  • *

    EXTREME_POSE - The face is at a pose that can't be detected. For example, the * head is turned too far away from the camera.

  • EXCEEDS_MAX_FACES * - The number of faces detected is already higher than that specified by the * MaxFaces input parameter for IndexFaces.

  • *
  • LOW_BRIGHTNESS - The image is too dark.

  • LOW_SHARPNESS * - The image is too blurry.

  • LOW_CONFIDENCE - The face was * detected with a low confidence.

  • SMALL_BOUNDING_BOX - The * bounding box around the face is too small.

*/ inline const Aws::Vector& GetReasons() const{ return m_reasons; } /** *

An array of reasons that specify why a face wasn't indexed.

  • *

    EXTREME_POSE - The face is at a pose that can't be detected. For example, the * head is turned too far away from the camera.

  • EXCEEDS_MAX_FACES * - The number of faces detected is already higher than that specified by the * MaxFaces input parameter for IndexFaces.

  • *
  • LOW_BRIGHTNESS - The image is too dark.

  • LOW_SHARPNESS * - The image is too blurry.

  • LOW_CONFIDENCE - The face was * detected with a low confidence.

  • SMALL_BOUNDING_BOX - The * bounding box around the face is too small.

*/ inline bool ReasonsHasBeenSet() const { return m_reasonsHasBeenSet; } /** *

An array of reasons that specify why a face wasn't indexed.

  • *

    EXTREME_POSE - The face is at a pose that can't be detected. For example, the * head is turned too far away from the camera.

  • EXCEEDS_MAX_FACES * - The number of faces detected is already higher than that specified by the * MaxFaces input parameter for IndexFaces.

  • *
  • LOW_BRIGHTNESS - The image is too dark.

  • LOW_SHARPNESS * - The image is too blurry.

  • LOW_CONFIDENCE - The face was * detected with a low confidence.

  • SMALL_BOUNDING_BOX - The * bounding box around the face is too small.

*/ inline void SetReasons(const Aws::Vector& value) { m_reasonsHasBeenSet = true; m_reasons = value; } /** *

An array of reasons that specify why a face wasn't indexed.

  • *

    EXTREME_POSE - The face is at a pose that can't be detected. For example, the * head is turned too far away from the camera.

  • EXCEEDS_MAX_FACES * - The number of faces detected is already higher than that specified by the * MaxFaces input parameter for IndexFaces.

  • *
  • LOW_BRIGHTNESS - The image is too dark.

  • LOW_SHARPNESS * - The image is too blurry.

  • LOW_CONFIDENCE - The face was * detected with a low confidence.

  • SMALL_BOUNDING_BOX - The * bounding box around the face is too small.

*/ inline void SetReasons(Aws::Vector&& value) { m_reasonsHasBeenSet = true; m_reasons = std::move(value); } /** *

An array of reasons that specify why a face wasn't indexed.

  • *

    EXTREME_POSE - The face is at a pose that can't be detected. For example, the * head is turned too far away from the camera.

  • EXCEEDS_MAX_FACES * - The number of faces detected is already higher than that specified by the * MaxFaces input parameter for IndexFaces.

  • *
  • LOW_BRIGHTNESS - The image is too dark.

  • LOW_SHARPNESS * - The image is too blurry.

  • LOW_CONFIDENCE - The face was * detected with a low confidence.

  • SMALL_BOUNDING_BOX - The * bounding box around the face is too small.

*/ inline UnindexedFace& WithReasons(const Aws::Vector& value) { SetReasons(value); return *this;} /** *

An array of reasons that specify why a face wasn't indexed.

  • *

    EXTREME_POSE - The face is at a pose that can't be detected. For example, the * head is turned too far away from the camera.

  • EXCEEDS_MAX_FACES * - The number of faces detected is already higher than that specified by the * MaxFaces input parameter for IndexFaces.

  • *
  • LOW_BRIGHTNESS - The image is too dark.

  • LOW_SHARPNESS * - The image is too blurry.

  • LOW_CONFIDENCE - The face was * detected with a low confidence.

  • SMALL_BOUNDING_BOX - The * bounding box around the face is too small.

*/ inline UnindexedFace& WithReasons(Aws::Vector&& value) { SetReasons(std::move(value)); return *this;} /** *

An array of reasons that specify why a face wasn't indexed.

  • *

    EXTREME_POSE - The face is at a pose that can't be detected. For example, the * head is turned too far away from the camera.

  • EXCEEDS_MAX_FACES * - The number of faces detected is already higher than that specified by the * MaxFaces input parameter for IndexFaces.

  • *
  • LOW_BRIGHTNESS - The image is too dark.

  • LOW_SHARPNESS * - The image is too blurry.

  • LOW_CONFIDENCE - The face was * detected with a low confidence.

  • SMALL_BOUNDING_BOX - The * bounding box around the face is too small.

*/ inline UnindexedFace& AddReasons(const Reason& value) { m_reasonsHasBeenSet = true; m_reasons.push_back(value); return *this; } /** *

An array of reasons that specify why a face wasn't indexed.

  • *

    EXTREME_POSE - The face is at a pose that can't be detected. For example, the * head is turned too far away from the camera.

  • EXCEEDS_MAX_FACES * - The number of faces detected is already higher than that specified by the * MaxFaces input parameter for IndexFaces.

  • *
  • LOW_BRIGHTNESS - The image is too dark.

  • LOW_SHARPNESS * - The image is too blurry.

  • LOW_CONFIDENCE - The face was * detected with a low confidence.

  • SMALL_BOUNDING_BOX - The * bounding box around the face is too small.

*/ inline UnindexedFace& AddReasons(Reason&& value) { m_reasonsHasBeenSet = true; m_reasons.push_back(std::move(value)); return *this; } /** *

The structure that contains attributes of a face that * IndexFacesdetected, but didn't index.

*/ inline const FaceDetail& GetFaceDetail() const{ return m_faceDetail; } /** *

The structure that contains attributes of a face that * IndexFacesdetected, but didn't index.

*/ inline bool FaceDetailHasBeenSet() const { return m_faceDetailHasBeenSet; } /** *

The structure that contains attributes of a face that * IndexFacesdetected, but didn't index.

*/ inline void SetFaceDetail(const FaceDetail& value) { m_faceDetailHasBeenSet = true; m_faceDetail = value; } /** *

The structure that contains attributes of a face that * IndexFacesdetected, but didn't index.

*/ inline void SetFaceDetail(FaceDetail&& value) { m_faceDetailHasBeenSet = true; m_faceDetail = std::move(value); } /** *

The structure that contains attributes of a face that * IndexFacesdetected, but didn't index.

*/ inline UnindexedFace& WithFaceDetail(const FaceDetail& value) { SetFaceDetail(value); return *this;} /** *

The structure that contains attributes of a face that * IndexFacesdetected, but didn't index.

*/ inline UnindexedFace& WithFaceDetail(FaceDetail&& value) { SetFaceDetail(std::move(value)); return *this;} private: Aws::Vector m_reasons; bool m_reasonsHasBeenSet = false; FaceDetail m_faceDetail; bool m_faceDetailHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws