{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudmersive/json-schema/cloudmersive-age-detection-result-schema.json",
  "title": "AgeDetectionResult",
  "description": "Result from classifying the Age and Gender of people in an image",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudmersive-face-api-openapi.yml#/components/schemas/AgeDetectionResult",
  "type": "object",
  "properties": {
    "Successful": {
      "description": "True if the operation was successful, false otherwise",
      "type": "boolean"
    },
    "PeopleWithAge": {
      "description": "People in the image annotated with age and gender information",
      "type": "array",
      "items": {
        "$ref": "#/$defs/PersonWithAge"
      }
    },
    "PeopleIdentified": {
      "format": "int32",
      "description": "Number of people identified in the image with an age",
      "type": "integer"
    }
  },
  "$defs": {
    "Face": {
      "description": "Location of one face in an image",
      "type": "object",
      "properties": {
        "LeftX": {
          "format": "int32",
          "description": "X coordinate of the left side of the face",
          "type": "integer"
        },
        "TopY": {
          "format": "int32",
          "description": "Y coordinate of the top side of the face",
          "type": "integer"
        },
        "RightX": {
          "format": "int32",
          "description": "X coordinate of the right side of the face",
          "type": "integer"
        },
        "BottomY": {
          "format": "int32",
          "description": "Y coordinate of the bottom side of the face",
          "type": "integer"
        }
      }
    },
    "PersonWithAge": {
      "description": "A person identified in an image age classification operation",
      "type": "object",
      "properties": {
        "FaceLocation": {
          "$ref": "#/$defs/Face",
          "description": "Location and other information about the person's face corresponding to this age classification"
        },
        "AgeClassificationConfidence": {
          "format": "double",
          "description": "Confidence level of age classification; possible values are between 0.0 and 1.0; higher is better, with values &gt; 0.50 being high confidence results",
          "type": "number"
        },
        "AgeClass": {
          "description": "The person's age range classification result in years; possible values are \"0-2\", \"4-6\", \"8-13\", \"15-20\", \"25-32\", \"38-43\", \"48-53\", \"60+\"",
          "type": "string"
        },
        "Age": {
          "format": "double",
          "description": "The specific estimated age of the person",
          "type": "number"
        },
        "GenderClassification": {
          "description": "Gender estimation classification as Female or Male",
          "type": "string"
        },
        "GenderFemaleConfidence": {
          "format": "double",
          "description": "Confidence level of classification as female; possible values are between 0.0 and 1.0",
          "type": "number"
        },
        "GenderMaleConfidence": {
          "format": "double",
          "description": "Confidence level of classification as male; possible values are between 0.0 and 1.0",
          "type": "number"
        }
      }
    }
  }
}