{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-cognitive-services/json-schema/microsoft-cognitive-services-image-analysis-result-schema.json",
  "title": "ImageAnalysisResult",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-cognitive-services-image-analysis-api-openapi.yml#/components/schemas/ImageAnalysisResult",
  "type": "object",
  "properties": {
    "modelVersion": {
      "type": "string"
    },
    "metadata": {
      "$ref": "#/$defs/ImageMetadata"
    },
    "captionResult": {
      "$ref": "#/$defs/CaptionResult"
    },
    "denseCaptionsResult": {
      "$ref": "#/$defs/DenseCaptionsResult"
    },
    "tagsResult": {
      "$ref": "#/$defs/TagsResult"
    },
    "objectsResult": {
      "$ref": "#/$defs/ObjectsResult"
    },
    "peopleResult": {
      "$ref": "#/$defs/PeopleResult"
    },
    "readResult": {
      "$ref": "#/$defs/ReadResult"
    },
    "smartCropsResult": {
      "$ref": "#/$defs/SmartCropsResult"
    }
  },
  "$defs": {
    "BoundingBox": {
      "type": "object",
      "properties": {
        "x": {
          "type": "integer"
        },
        "y": {
          "type": "integer"
        },
        "w": {
          "type": "integer"
        },
        "h": {
          "type": "integer"
        }
      }
    },
    "CaptionResult": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "confidence": {
          "type": "number",
          "format": "double"
        }
      }
    },
    "DenseCaption": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "confidence": {
          "type": "number",
          "format": "double"
        },
        "boundingBox": {
          "$ref": "#/$defs/BoundingBox"
        }
      }
    },
    "DenseCaptionsResult": {
      "type": "object",
      "properties": {
        "values": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DenseCaption"
          }
        }
      }
    },
    "DetectedObject": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "boundingBox": {
          "$ref": "#/$defs/BoundingBox"
        },
        "tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Tag"
          }
        }
      }
    },
    "DetectedPerson": {
      "type": "object",
      "properties": {
        "boundingBox": {
          "$ref": "#/$defs/BoundingBox"
        },
        "confidence": {
          "type": "number",
          "format": "double"
        }
      }
    },
    "ImageMetadata": {
      "type": "object",
      "properties": {
        "width": {
          "type": "integer"
        },
        "height": {
          "type": "integer"
        }
      }
    },
    "ObjectsResult": {
      "type": "object",
      "properties": {
        "values": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DetectedObject"
          }
        }
      }
    },
    "PeopleResult": {
      "type": "object",
      "properties": {
        "values": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DetectedPerson"
          }
        }
      }
    },
    "ReadResult": {
      "type": "object",
      "properties": {
        "content": {
          "type": "string"
        },
        "pages": {
          "type": "array",
          "items": {
            "type": "object"
          }
        },
        "stringIndexType": {
          "type": "string"
        }
      }
    },
    "SmartCropsResult": {
      "type": "object",
      "properties": {
        "values": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "aspectRatio": {
                "type": "number",
                "format": "double"
              },
              "boundingBox": {
                "$ref": "#/$defs/BoundingBox"
              }
            }
          }
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "confidence": {
          "type": "number",
          "format": "double"
        }
      }
    },
    "TagsResult": {
      "type": "object",
      "properties": {
        "values": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Tag"
          }
        }
      }
    }
  }
}