{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-ninjas-com/json-schema/api-ninjas-com-object-detection-response-schema.json",
  "title": "ObjectDetectionResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-ninjas-com-ai-api-openapi.yml#/components/schemas/ObjectDetectionResponse",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "label": {
        "type": "string",
        "description": "The label of the detected object."
      },
      "confidence": {
        "type": "string",
        "description": "The confidence score of the detected object (between 0 and 1), returned as a string."
      },
      "bounding_box": {
        "type": "object",
        "properties": {
          "x1": {
            "type": "string",
            "description": "X-coordinate of the top-left corner of the bounding box, returned as a string."
          },
          "y1": {
            "type": "string",
            "description": "Y-coordinate of the top-left corner of the bounding box, returned as a string."
          },
          "x2": {
            "type": "string",
            "description": "X-coordinate of the bottom-right corner of the bounding box, returned as a string."
          },
          "y2": {
            "type": "string",
            "description": "Y-coordinate of the bottom-right corner of the bounding box, returned as a string."
          }
        }
      }
    }
  }
}