Detect Text

textract.detect_text
ActionAmazon Web Servicesconnection required

Calls the Textract DetectDocumentText action (SigV4).

Extract text (OCR) from a document stored in S3 with AWS Textract.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
AWS Textract
Secret shape
{"access_key_id", "secret_access_key"}
Config it needs
region
Resolved by
config.connection_id, else node.connection_id

Configuration

3 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
region
AWS region (overrides connection).
stringNo———
bucket
S3 bucket holding the document. Supports {{ }}.
stringYes———
object
S3 object key of the document.
stringYes———

Output

One shape.

result

FieldTypeExample
text
string—
lines
One entry per detected line: text, confidence, the block id Textract gave it, its page and its bounding_box (width, height, left, top).
array—
count
number—
page_count
Pages Textract processed.
number—
model_version
Textract's OCR model version.
string—
{
  "count": 0,
  "lines": [],
  "model_version": "",
  "page_count": 0,
  "text": ""
}

Solutions with AWS Textract

See Detect Text run in a workflow.

In a technical demo we add the AWS Textract connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.