{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-rekognition/json-schema/amazon-rekognition-search-users-by-image-response-schema.json",
  "title": "SearchUsersByImageResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-rekognition-user-api-openapi.yml#/components/schemas/SearchUsersByImageResponse",
  "type": "object",
  "properties": {
    "UserMatches": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UserMatch"
      },
      "description": "An array of UserID objects that matched the input face, along with the confidence in the match. The returned structure will be empty if there are no matches. Returned if the SearchUsersByImageResponse action is successful."
    },
    "FaceModelVersion": {
      "type": "string",
      "description": "Version number of the face detection model associated with the input collection CollectionId."
    },
    "SearchedFace": {
      "$ref": "#/$defs/SearchedFaceDetails"
    },
    "UnsearchedFaces": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UnsearchedFace"
      },
      "description": "List of UnsearchedFace objects. Contains the face details infered from the specified image but not used for search. Contains reasons that describe why a face wasn't used for Search."
    }
  },
  "$defs": {
    "AgeRange": {
      "type": "object",
      "properties": {
        "Low": {
          "type": "integer",
          "description": "The lowest estimated age."
        },
        "High": {
          "type": "integer",
          "description": "The highest estimated age."
        }
      }
    },
    "Beard": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "boolean",
          "description": "Boolean value that indicates whether the face has beard or not."
        },
        "Confidence": {
          "type": "number",
          "description": "Level of confidence in the determination."
        }
      }
    },
    "BoundingBox": {
      "type": "object",
      "properties": {
        "Width": {
          "type": "number",
          "description": "Width of the bounding box as a ratio of the overall image width."
        },
        "Height": {
          "type": "number",
          "description": "Height of the bounding box as a ratio of the overall image height."
        },
        "Left": {
          "type": "number",
          "description": "Left coordinate of the bounding box as a ratio of overall image width."
        },
        "Top": {
          "type": "number",
          "description": "Top coordinate of the bounding box as a ratio of overall image height."
        }
      }
    },
    "Emotion": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "HAPPY",
            "SAD",
            "ANGRY",
            "CONFUSED",
            "DISGUSTED",
            "SURPRISED",
            "CALM",
            "UNKNOWN",
            "FEAR"
          ],
          "description": "Type of emotion detected."
        },
        "Confidence": {
          "type": "number",
          "description": "Level of confidence in the determination."
        }
      }
    },
    "EyeDirection": {
      "type": "object",
      "properties": {
        "Yaw": {
          "type": "number",
          "description": "Value representing eye direction on the yaw axis."
        },
        "Pitch": {
          "type": "number",
          "description": "Value representing eye direction on the pitch axis."
        },
        "Confidence": {
          "type": "number",
          "description": "The confidence that the service has in its predicted eye direction."
        }
      }
    },
    "EyeOpen": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "boolean",
          "description": "Boolean value that indicates whether the eyes on the face are open."
        },
        "Confidence": {
          "type": "number",
          "description": "Level of confidence in the determination."
        }
      }
    },
    "Eyeglasses": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "boolean",
          "description": "Boolean value that indicates whether the face is wearing eye glasses or not."
        },
        "Confidence": {
          "type": "number",
          "description": "Level of confidence in the determination."
        }
      }
    },
    "FaceDetail": {
      "type": "object",
      "properties": {
        "BoundingBox": {
          "$ref": "#/$defs/BoundingBox"
        },
        "AgeRange": {
          "$ref": "#/$defs/AgeRange"
        },
        "Smile": {
          "$ref": "#/$defs/Smile"
        },
        "Eyeglasses": {
          "$ref": "#/$defs/Eyeglasses"
        },
        "Sunglasses": {
          "$ref": "#/$defs/Sunglasses"
        },
        "Gender": {
          "$ref": "#/$defs/Gender"
        },
        "Beard": {
          "$ref": "#/$defs/Beard"
        },
        "Mustache": {
          "$ref": "#/$defs/Mustache"
        },
        "EyesOpen": {
          "$ref": "#/$defs/EyeOpen"
        },
        "MouthOpen": {
          "$ref": "#/$defs/MouthOpen"
        },
        "Emotions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Emotion"
          },
          "description": "The emotions that appear to be expressed on the face, and the confidence level in the determination. The API is only making a determination of the physical appearance of a person's face. It is not a determination of the person’s internal emotional state and should not be used in such a way. For example, a person pretending to have a sad face might not be sad emotionally."
        },
        "Landmarks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Landmark"
          },
          "description": "Indicates the location of landmarks on the face. Default attribute."
        },
        "Pose": {
          "$ref": "#/$defs/Pose"
        },
        "Quality": {
          "$ref": "#/$defs/ImageQuality"
        },
        "Confidence": {
          "type": "number",
          "description": "Confidence level that the bounding box contains a face (and not a different object such as a tree). Default attribute."
        },
        "FaceOccluded": {
          "$ref": "#/$defs/FaceOccluded"
        },
        "EyeDirection": {
          "$ref": "#/$defs/EyeDirection"
        }
      }
    },
    "FaceOccluded": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "boolean",
          "description": "True if a detected face’s eyes, nose, and mouth are partially captured or if they are covered by masks, dark sunglasses, cell phones, hands, or other objects. False if common occurrences that do not impact face verification are detected, such as eye glasses, lightly tinted sunglasses, strands of hair, and others."
        },
        "Confidence": {
          "type": "number",
          "description": "The confidence that the service has detected the presence of a face occlusion."
        }
      }
    },
    "Gender": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "string",
          "enum": [
            "Male",
            "Female"
          ],
          "description": "The predicted gender of the face."
        },
        "Confidence": {
          "type": "number",
          "description": "Level of confidence in the prediction."
        }
      }
    },
    "ImageQuality": {
      "type": "object",
      "properties": {
        "Brightness": {
          "type": "number",
          "description": "Value representing brightness of the face. The service returns a value between 0 and 100 (inclusive). A higher value indicates a brighter face image."
        },
        "Sharpness": {
          "type": "number",
          "description": "Value representing sharpness of the face. The service returns a value between 0 and 100 (inclusive). A higher value indicates a sharper face image."
        }
      }
    },
    "Landmark": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "eyeLeft",
            "eyeRight",
            "nose",
            "mouthLeft",
            "mouthRight",
            "leftEyeBrowLeft",
            "leftEyeBrowRight",
            "leftEyeBrowUp",
            "rightEyeBrowLeft",
            "rightEyeBrowRight",
            "rightEyeBrowUp",
            "leftEyeLeft",
            "leftEyeRight",
            "leftEyeUp",
            "leftEyeDown",
            "rightEyeLeft",
            "rightEyeRight",
            "rightEyeUp",
            "rightEyeDown",
            "noseLeft",
            "noseRight",
            "mouthUp",
            "mouthDown",
            "leftPupil",
            "rightPupil",
            "upperJawlineLeft",
            "midJawlineLeft",
            "chinBottom",
            "midJawlineRight",
            "upperJawlineRight"
          ],
          "description": "Type of landmark."
        },
        "X": {
          "type": "number",
          "description": "The x-coordinate of the landmark expressed as a ratio of the width of the image. The x-coordinate is measured from the left-side of the image. For example, if the image is 700 pixels wide and the x-coordinate of the landmark is at 350 pixels, this value is 0.5."
        },
        "Y": {
          "type": "number",
          "description": "The y-coordinate of the landmark expressed as a ratio of the height of the image. The y-coordinate is measured from the top of the image. For example, if the image height is 200 pixels and the y-coordinate of the landmark is at 50 pixels, this value is 0.25."
        }
      }
    },
    "MatchedUser": {
      "type": "object",
      "properties": {
        "UserId": {
          "type": "string",
          "description": "A provided ID for the UserID. Unique within the collection."
        },
        "UserStatus": {
          "type": "string",
          "enum": [
            "ACTIVE",
            "UPDATING",
            "CREATING",
            "CREATED"
          ],
          "description": "The status of the user matched to a provided FaceID."
        }
      }
    },
    "MouthOpen": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "boolean",
          "description": "Boolean value that indicates whether the mouth on the face is open or not."
        },
        "Confidence": {
          "type": "number",
          "description": "Level of confidence in the determination."
        }
      }
    },
    "Mustache": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "boolean",
          "description": "Boolean value that indicates whether the face has mustache or not."
        },
        "Confidence": {
          "type": "number",
          "description": "Level of confidence in the determination."
        }
      }
    },
    "Pose": {
      "type": "object",
      "properties": {
        "Roll": {
          "type": "number",
          "description": "Value representing the face rotation on the roll axis."
        },
        "Yaw": {
          "type": "number",
          "description": "Value representing the face rotation on the yaw axis."
        },
        "Pitch": {
          "type": "number",
          "description": "Value representing the face rotation on the pitch axis."
        }
      }
    },
    "SearchedFaceDetails": {
      "type": "object",
      "properties": {
        "FaceDetail": {
          "$ref": "#/$defs/FaceDetail"
        }
      }
    },
    "Smile": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "boolean",
          "description": "Boolean value that indicates whether the face is smiling or not."
        },
        "Confidence": {
          "type": "number",
          "description": "Level of confidence in the determination."
        }
      }
    },
    "Sunglasses": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "boolean",
          "description": "Boolean value that indicates whether the face is wearing sunglasses or not."
        },
        "Confidence": {
          "type": "number",
          "description": "Level of confidence in the determination."
        }
      }
    },
    "UnsearchedFace": {
      "type": "object",
      "properties": {
        "FaceDetails": {
          "$ref": "#/$defs/FaceDetail"
        },
        "Reasons": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "FACE_NOT_LARGEST",
              "EXCEEDS_MAX_FACES",
              "EXTREME_POSE",
              "LOW_BRIGHTNESS",
              "LOW_SHARPNESS",
              "LOW_CONFIDENCE",
              "SMALL_BOUNDING_BOX",
              "LOW_FACE_QUALITY"
            ]
          },
          "description": "Reasons why a face wasn't used for Search."
        }
      }
    },
    "UserMatch": {
      "type": "object",
      "properties": {
        "Similarity": {
          "type": "number",
          "description": "Describes the UserID metadata."
        },
        "User": {
          "$ref": "#/$defs/MatchedUser"
        }
      }
    }
  }
}