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.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
region AWS region (overrides connection). | string | No | — | — | — |
bucket S3 bucket holding the document. Supports {{ }}. | string | Yes | — | — | — |
object S3 object key of the document. | string | Yes | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
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.