{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudmersive/json-schema/cloudmersive-text-detection-result-schema.json",
  "title": "TextDetectionResult",
  "description": "Result of an operation to detect text in a photo",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudmersive-recognize-api-openapi.yml#/components/schemas/TextDetectionResult",
  "type": "object",
  "properties": {
    "Successful": {
      "description": "True if the operation was successful, false otherwise",
      "type": "boolean"
    },
    "TextItems": {
      "description": "Text items found in the input image",
      "type": "array",
      "items": {
        "$ref": "#/$defs/TextItem"
      }
    },
    "TextItemsCount": {
      "format": "int32",
      "description": "Count of text items found in the input image",
      "type": "integer"
    }
  },
  "$defs": {
    "TextItem": {
      "description": "Individual instance of text occuring in an image; one piece of text",
      "type": "object",
      "properties": {
        "DetectedText": {
          "description": "Text detected in the image",
          "type": "string"
        },
        "LeftX": {
          "format": "int32",
          "description": "Left X coordinate of the text location; 0 represents the left edge of the input image",
          "type": "integer"
        },
        "TopY": {
          "format": "int32",
          "description": "Top Y coordinate of the text location; 0 represents the top edge of the input image",
          "type": "integer"
        },
        "Width": {
          "format": "int32",
          "description": "Width in pixels of the text item",
          "type": "integer"
        },
        "Height": {
          "format": "int32",
          "description": "Height in pixels of the text item",
          "type": "integer"
        }
      }
    }
  }
}