Class: Aws::Textract::Types::DetectDocumentTextRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-textract/types.rb

Overview

Note:

When making an API call, you may pass DetectDocumentTextRequest data as a hash:

{
  document: { # required
    bytes: "data",
    s3_object: {
      bucket: "S3Bucket",
      name: "S3ObjectName",
      version: "S3ObjectVersion",
    },
  },
}

Instance Attribute Summary collapse

Instance Attribute Details

#documentTypes::Document

The input document as base64-encoded bytes or an Amazon S3 object. If you use the AWS CLI to call Amazon Textract operations, you can’t pass image bytes. The document must be an image in JPG or PNG format.

If you are using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes passed using the Bytes field.

Returns:



306
307
308
309
# File 'lib/aws-sdk-textract/types.rb', line 306

class DetectDocumentTextRequest < Struct.new(
  :document)
  include Aws::Structure
end