ladderlore
  • 输入服务名称,例如 S3 或 IAM。

服务 · Machine Learning · 基于 AIF-C01

Amazon Textract

Choose the right Textract API, run it sync or async, and add human review for low confidence.

本课尚未翻译,暂以英文显示。

你在AI Practitioner中已学过

  • Textract reads scanned documents and returns text, form fields as key and value pairs, and tables.
  • It reads printed text and handwriting.
  • Low-confidence results can go to human review with Amazon A2I.
阅读AI Practitioner课程
  • DetectDocumentText

    Returns
    Lines and words
    Mode
    Sync or async
  • AnalyzeDocument

    Returns
    Forms, tables, queries, signatures, layout
    Mode
    Sync or async
  • AnalyzeExpense

    Returns
    Vendor, total, line items
    Mode
    Sync or async
  • AnalyzeID

    Returns
    Fields from ID documents
    Mode
    Sync
Pick the API by what you need back.

1 / 2

  • DetectDocumentText

    Returns
    Lines and words
    Mode
    Sync or async
  • AnalyzeDocument

    Returns
    Forms, tables, queries, signatures, layout
    Mode
    Sync or async
  • AnalyzeExpense

    Returns
    Vendor, total, line items
    Mode
    Sync or async

2 / 2

  • AnalyzeID

    Returns
    Fields from ID documents
    Mode
    Sync
Pick the API by what you need back.
S3 as the ML data lake
Textract
SNS topic
Your code
  1. 1Start a job on a file in S3.
  2. 2Textract reads the pages and finishes.
  3. 3It publishes a completion message to an SNS topic.
  4. 4Your code calls the matching Get operation for the results.
The asynchronous pattern for multi-page files.

分步说明

  1. 1Start a job on a file in S3.
  2. 2Textract reads the pages and finishes.
  3. 3It publishes a completion message to an SNS topic.
  4. 4Your code calls the matching Get operation for the results.

The asynchronous pattern for multi-page files.

是什么

Pick the API by what you need back. DetectDocumentText returns lines and words only. AnalyzeDocument adds the features you request: FORMS (key and value pairs), TABLES (cells), QUERIES (ask in plain language, such as “What is the invoice total?”), SIGNATURES (where a signature sits) and LAYOUT (titles, headers and paragraphs). AnalyzeExpense is made for invoices and receipts: it returns summary fields such as vendor and total, plus line items. AnalyzeID reads identity documents such as passports and driver’s licenses.

是什么

Synchronous calls take a single-page document and answer at once. For multi-page documents, start an asynchronous job, for example StartDocumentAnalysis, on a file in Amazon S3. Textract publishes a completion message to an Amazon SNS topic, then your code fetches the results with the matching Get call.

When a result has low confidence, Amazon Augmented AI (Amazon A2I) can route it to people for review. Status: A2I was moved to maintenance in the June 30, 2026 availability update and is closed to new customers from July 30, 2026. Existing users can keep using it.

要记住

  • DetectDocumentText: lines and words. AnalyzeDocument: forms, tables, queries, signatures and layout.
  • AnalyzeExpense: invoices and receipts. AnalyzeID: passports and driver’s licenses.
  • Sync for single pages. Async for multi-page files: S3 input, SNS notification, then a Get call.
  • Every result has a confidence score. Low scores can go to human review with A2I.

要记住

  • A2I: closed to new customers from July 30, 2026 (announced June 30, 2026).
  • Amazon Textract Insights, a newer generative AI option, handles mixed document packets and RAG output. It is asynchronous and only in US East (N. Virginia) and US West (Oregon).

考试中

  • “Pull the total and vendor name from thousands of receipts” points to AnalyzeExpense.
  • “Ask for the policy number, in plain language, on forms with different layouts” points to Textract Queries.
  • “A 200-page PDF in S3, notify when done” points to an asynchronous job with Amazon SNS.