OCRRouter

Amazon Textract vs docTR

Pick Amazon Textract if you are on AWS and process English forms, invoices or large scanned PDF batches, because it returns tables, forms and queries from a managed API. Pick docTR if you want a free, Apache-2.0 library you run yourself for word-level OCR with coordinates, and you can handle table or Markdown needs elsewhere. Textract is limited to six Latin-script languages; docTR gives you no table, formula or Markdown output at all.

Amazon Textractaws/textractdocTRmindee/doctr
TypeOCR APIOpen source
Price25 credits / page1 credit / page
Per 1,000 pages$25.00$1.00
Typical speed1.2 s / page0.9 s / page
Best forForms and key-value extractionWord-level OCR with positions
InputsPDF, imagesPDF, images
Languages6 languagesMainly Latin scripts
Max pages per request3,000500
Tables✓ YesNo
Handwriting✓ YesNo
MathNoNo
Bounding boxes✓ Yes✓ Yes
Confidence✓ Yes✓ Yes
Forms✓ YesNo
MultilingualNoNo
On OCRRouterAvailableAvailable

Prices are what you pay on OCRRouter. Speed is the provider's typical figure, not a benchmark we ran.

Which to choose

Choose Amazon Textract if

  • It extracts tables ($0.015/page), forms ($0.05/page) and queries ($0.015/page), which docTR does not return.
  • The async API takes PDFs up to 500 MB and 3,000 pages, so large scanned batches need no infrastructure from you.
  • It has a published table accuracy score of 80.9% on RD-TableBench, and returns word and line geometry with confidence scores.

Choose docTR if

  • It is Apache-2.0 and free to self-host, so you pay only for compute and no per-page fee applies.
  • You choose the detection and recognition architectures, with straight or rotated boxes, and can train your own models in Python.
  • It exports a nested page, block, line and word structure with coordinates as JSON, which suits invoices and receipts feeding custom extraction.

Key differences

Amazon TextractdocTR
LicenceProprietaryApache-2.0
How you run itHosted AWS APIPython library on PyTorch, with Docker images; CPU or NVIDIA GPU (GPU images need CUDA 12.2 or newer on the host)
PriceUS West (Oregon), first 1M pages/month: text detection $0.0015/page, Tables $0.015, Forms $0.05, Queries $0.015Free, self-hosted (you pay for compute)
Tables and formsTables, forms, queries and layout supportedNo table, formula or Markdown output; words and lines only
LanguagesText detection: English, French, German, Italian, Portuguese, Spanish. Handwriting and Queries: English only. Vertical Japanese and Chinese not supportedNot published
Benchmark80.9% on RD-TableBench table accuracy (independent)Not published
Known failureSync API takes one page onlyCropping images gives poorer results (issue #2007); split-crop merging can misjoin readings across repeated characters (issue #2229); ONNX export of MASTER truncates decoding steps (issue #2224)

Sources

What each one is

Amazon Textract

AWS OCR with form key-value pairs, tables and per-word confidence scores.

Amazon Textract details

docTR

Open-source OCR library from Mindee with separate text detection and recognition models.

docTR details

Try both on your own file

Run the file once with each model and compare the output.

PDF, PNG, JPG, WebP, HEIC. Up to 20 MB each, 10 files.No file?

Use one, fall back to the other

{"model": "aws/textract","fallbacks": ["mindee/doctr"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Amazon Textract alternativesdocTR alternativesBest OCR models in 2026