docTR vs TrOCR
DocTR is faster; only docTR supports bounding boxes, confidence; only TrOCR supports handwriting.
docTRmindee/doctr | TrOCRmicrosoft/trocr | |
|---|---|---|
| Type | Open source | Open source |
| Price | 1 credit / page | 1 credit / page |
| Per 1,000 pages | $1.00 | $1.00 |
| Typical speed | 0.9 s / page | 1.2 s / page |
| Best for | Word-level OCR with positions | Handwritten text lines |
| Inputs | PDF, images | images |
| Languages | Mainly Latin scripts | English |
| Max pages per request | 500 | 100 |
| Tables | No | No |
| Handwriting | No | ✓ Yes |
| Math | No | No |
| Bounding boxes | ✓ Yes | No |
| Confidence | ✓ Yes | No |
| Forms | No | No |
| Multilingual | No | No |
| On OCRRouter | Coming soon | Coming 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 detailsTrOCR
Transformer text recognition model. Reads single text lines, including handwriting.
TrOCR detailsUse one, fall back to the other
Request body
{
"model": "mindee/doctr",
"fallbacks": ["microsoft/trocr"],
"file_url": "https://example.com/document.pdf"
}