textract_detect_document_text: Detects text in the input document

View source: R/textract_operations.R

textract_detect_document_textR Documentation

Detects text in the input document

Description

Detects text in the input document. Amazon Textract can detect lines of text and the words that make up a line of text. The input document must be in one of the following image formats: JPEG, PNG, PDF, or TIFF. detect_document_text returns the detected text in an array of Block objects.

See https://www.paws-r-sdk.com/docs/textract_detect_document_text/ for full documentation.

Usage

textract_detect_document_text(Document)

Arguments

Document

[required] 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.


paws.machine.learning documentation built on Sept. 12, 2024, 6:23 a.m.