{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-rekognition/json-schema/amazon-rekognition-get-text-detection-response-schema.json",
  "title": "GetTextDetectionResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-rekognition-text-detection-api-openapi.yml#/components/schemas/GetTextDetectionResponse",
  "type": "object",
  "properties": {
    "JobStatus": {
      "type": "string",
      "enum": [
        "IN_PROGRESS",
        "SUCCEEDED",
        "FAILED"
      ],
      "description": "Current status of the text detection job."
    },
    "StatusMessage": {
      "type": "string",
      "description": "If the job fails, StatusMessage provides a descriptive error message."
    },
    "VideoMetadata": {
      "$ref": "#/$defs/VideoMetadata"
    },
    "TextDetections": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TextDetectionResult"
      },
      "description": "An array of text detected in the video. Each element contains the detected text, the time in milliseconds from the start of the video that the text was detected, and where it was detected on the screen."
    },
    "NextToken": {
      "type": "string",
      "description": "If the response is truncated, Amazon Rekognition Video returns this token that you can use in the subsequent request to retrieve the next set of text."
    },
    "TextModelVersion": {
      "type": "string",
      "description": "Version number of the text detection model that was used to detect text."
    },
    "JobId": {
      "type": "string",
      "description": "Job identifier for the text detection operation for which you want to obtain results. The job identifer is returned by an initial call to StartTextDetection."
    },
    "Video": {
      "$ref": "#/$defs/Video"
    },
    "JobTag": {
      "type": "string",
      "description": "A job identifier specified in the call to StartTextDetection and returned in the job completion notification sent to your Amazon Simple Notification Service topic."
    }
  },
  "$defs": {
    "BoundingBox": {
      "type": "object",
      "properties": {
        "Width": {
          "type": "number",
          "description": "Width of the bounding box as a ratio of the overall image width."
        },
        "Height": {
          "type": "number",
          "description": "Height of the bounding box as a ratio of the overall image height."
        },
        "Left": {
          "type": "number",
          "description": "Left coordinate of the bounding box as a ratio of overall image width."
        },
        "Top": {
          "type": "number",
          "description": "Top coordinate of the bounding box as a ratio of overall image height."
        }
      }
    },
    "Geometry": {
      "type": "object",
      "properties": {
        "BoundingBox": {
          "$ref": "#/$defs/BoundingBox"
        },
        "Polygon": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Point"
          },
          "description": "Within the bounding box, a fine-grained polygon around the detected item."
        }
      }
    },
    "Point": {
      "type": "object",
      "properties": {
        "X": {
          "type": "number",
          "description": "The value of the X coordinate for a point on a Polygon."
        },
        "Y": {
          "type": "number",
          "description": "The value of the Y coordinate for a point on a Polygon."
        }
      }
    },
    "S3Object": {
      "type": "object",
      "properties": {
        "Bucket": {
          "type": "string",
          "description": "Name of the S3 bucket."
        },
        "Name": {
          "type": "string",
          "description": "S3 object key name."
        },
        "Version": {
          "type": "string",
          "description": "If the bucket is versioning enabled, you can specify the object version."
        }
      }
    },
    "TextDetection": {
      "type": "object",
      "properties": {
        "DetectedText": {
          "type": "string",
          "description": "The word or line of text recognized by Amazon Rekognition."
        },
        "Type": {
          "type": "string",
          "enum": [
            "LINE",
            "WORD"
          ],
          "description": "The type of text that was detected."
        },
        "Id": {
          "type": "integer",
          "description": "The identifier for the detected text. The identifier is only unique for a single call to DetectText."
        },
        "ParentId": {
          "type": "integer",
          "description": "The Parent identifier for the detected text identified by the value of ID. If the type of detected text is LINE, the value of ParentId is Null."
        },
        "Confidence": {
          "type": "number",
          "description": "The confidence that Amazon Rekognition has in the accuracy of the detected text and the accuracy of the geometry points around the detected text."
        },
        "Geometry": {
          "$ref": "#/$defs/Geometry"
        }
      }
    },
    "TextDetectionResult": {
      "type": "object",
      "properties": {
        "Timestamp": {
          "type": "integer",
          "description": "The time, in milliseconds from the start of the video, that the text was detected. Note that Timestamp is not guaranteed to be accurate to the individual frame where the text first appears."
        },
        "TextDetection": {
          "$ref": "#/$defs/TextDetection"
        }
      }
    },
    "Video": {
      "type": "object",
      "properties": {
        "S3Object": {
          "$ref": "#/$defs/S3Object"
        }
      }
    },
    "VideoMetadata": {
      "type": "object",
      "properties": {
        "Codec": {
          "type": "string",
          "description": "Type of compression used in the analyzed video."
        },
        "DurationMillis": {
          "type": "integer",
          "description": "Length of the video in milliseconds."
        },
        "Format": {
          "type": "string",
          "description": "Format of the analyzed video. Possible values are MP4, MOV and AVI."
        },
        "FrameRate": {
          "type": "number",
          "description": "Number of frames per second in the video."
        },
        "FrameHeight": {
          "type": "integer",
          "description": "Vertical pixel dimension of the video."
        },
        "FrameWidth": {
          "type": "integer",
          "description": "Horizontal pixel dimension of the video."
        },
        "ColorRange": {
          "type": "string",
          "enum": [
            "FULL",
            "LIMITED"
          ],
          "description": "A description of the range of luminance values in a video, either LIMITED (16 to 235) or FULL (0 to 255)."
        }
      }
    }
  }
}