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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-textract/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",
    },
  },
}

Constant Summary collapse

SENSITIVE =
[]

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 JPEG or PNG format.

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

Returns:



355
356
357
358
359
# File 'gems/aws-sdk-textract/lib/aws-sdk-textract/types.rb', line 355

class DetectDocumentTextRequest < Struct.new(
  :document)
  SENSITIVE = []
  include Aws::Structure
end