{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scifig-ai/json-schema/scifig-ai-text-detection-schema.json",
  "title": "TextDetection",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scifig-ai-openapi.json#/components/schemas/TextDetection",
  "type": "object",
  "required": [
    "id",
    "object",
    "width",
    "height",
    "texts"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "object": {
      "const": "text_detection"
    },
    "width": {
      "type": "integer"
    },
    "height": {
      "type": "integer"
    },
    "texts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer"
          },
          "text": {
            "type": "string"
          },
          "corners": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "x": {
                  "type": "number"
                },
                "y": {
                  "type": "number"
                }
              }
            }
          }
        }
      }
    }
  }
}