OCRRouterGet API key

docTR vs TrOCR

DocTR is faster; only docTR supports bounding boxes, confidence; only TrOCR supports handwriting.

docTRmindee/doctrTrOCRmicrosoft/trocr
TypeOpen sourceOpen source
Price1 credit / page1 credit / page
Per 1,000 pages$1.00$1.00
Typical speed0.9 s / page1.2 s / page
Best forWord-level OCR with positionsHandwritten text lines
InputsPDF, imagesimages
LanguagesMainly Latin scriptsEnglish
Max pages per request500100
TablesNoNo
HandwritingNo✓ Yes
MathNoNo
Bounding boxes✓ YesNo
Confidence✓ YesNo
FormsNoNo
MultilingualNoNo
On OCRRouterComing soonComing soon

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

What each one is

docTR

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

docTR details

TrOCR

Transformer text recognition model. Reads single text lines, including handwriting.

TrOCR details

Use one, fall back to the other

Request body
{
  "model": "mindee/doctr",
  "fallbacks": ["microsoft/trocr"],
  "file_url": "https://example.com/document.pdf"
}

Questions

More comparisons

docTR alternativesTrOCR alternatives