{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-rekognition/json-schema/amazon-rekognition-start-text-detection-request-schema.json",
  "title": "StartTextDetectionRequest",
  "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/StartTextDetectionRequest",
  "type": "object",
  "properties": {
    "Video": {
      "$ref": "#/$defs/Video"
    },
    "ClientRequestToken": {
      "type": "string",
      "description": "Idempotent token used to identify the start request. If you use the same token with multiple StartTextDetection requests, the same JobId is returned. Use ClientRequestToken to prevent the same job from being accidentaly started more than once."
    },
    "NotificationChannel": {
      "$ref": "#/$defs/NotificationChannel"
    },
    "JobTag": {
      "type": "string",
      "description": "An identifier returned in the completion status published by your Amazon Simple Notification Service topic. For example, you can use JobTag to group related jobs and identify them in the completion notification."
    },
    "Filters": {
      "$ref": "#/$defs/StartTextDetectionFilters"
    }
  },
  "required": [
    "Video"
  ],
  "$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."
        }
      }
    },
    "DetectionFilter": {
      "type": "object",
      "properties": {
        "MinConfidence": {
          "type": "number",
          "description": "Sets the confidence of word detection. Words with detection confidence below this will be excluded from the result. Values should be between 0 and 100. The default MinConfidence is 80."
        },
        "MinBoundingBoxHeight": {
          "type": "number",
          "description": "Sets the minimum height of the word bounding box. Words with bounding box heights lesser than this value will be excluded from the result. Value is relative to the video frame height."
        },
        "MinBoundingBoxWidth": {
          "type": "number",
          "description": "Sets the minimum width of the word bounding box. Words with bounding boxes widths lesser than this value will be excluded from the result. Value is relative to the video frame width."
        }
      }
    },
    "NotificationChannel": {
      "type": "object",
      "properties": {
        "SNSTopicArn": {
          "type": "string",
          "description": "The Amazon SNS topic to which Amazon Rekognition posts the completion status."
        },
        "RoleArn": {
          "type": "string",
          "description": "The ARN of an IAM role that gives Amazon Rekognition publishing permissions to the Amazon SNS topic."
        }
      },
      "required": [
        "SNSTopicArn",
        "RoleArn"
      ]
    },
    "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."
        }
      }
    },
    "RegionOfInterest": {
      "type": "object",
      "properties": {
        "BoundingBox": {
          "$ref": "#/$defs/BoundingBox"
        },
        "Polygon": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Point"
          },
          "description": "Specifies a shape made up of up to 10 Point objects to define a region of interest."
        }
      }
    },
    "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."
        }
      }
    },
    "StartTextDetectionFilters": {
      "type": "object",
      "properties": {
        "WordFilter": {
          "$ref": "#/$defs/DetectionFilter"
        },
        "RegionsOfInterest": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RegionOfInterest"
          },
          "description": "Filter focusing on a certain area of the frame. Uses a BoundingBox object to set the region of the screen."
        }
      }
    },
    "Video": {
      "type": "object",
      "properties": {
        "S3Object": {
          "$ref": "#/$defs/S3Object"
        }
      }
    }
  }
}