ExitAmazon Textract: Document extraction APIs1 / 9
Explanationassociate9 steps · 4 exercises

Choose what to extract

How an application chooses between text detection and structured extraction, then reads the returned blocks from a synchronous call or an asynchronous job.

Use text detection when your application needs the words on a page but not their roles. For example, it can extract lines from a scanned notice so users can search for a phrase. Textract groups detected words into lines, but text detection does not identify which text is a form field or belongs in a table cell.

Use document analysis when those relationships matter. To extract a form field such as “Customer ID” and its value, request FORMS. To preserve the rows and columns of a table, request TABLES. The analysis result still includes detected text; the requested features add structure to it.

What you needText detectionDocument analysis
OutputLines and wordsText plus requested structure
Synchronous callDetectDocumentTextAnalyzeDocument
Asynchronous startStartDocumentTextDetectionStartDocumentAnalysis
Asynchronous retrievalGetDocumentTextDetectionGetDocumentAnalysis

Next up: Sort the statements on what you just read.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.