OCRmyPDF vs TrOCR
OCRmyPDF is faster; only OCRmyPDF supports multilingual; only TrOCR supports handwriting.
OCRmyPDFocrmypdf/ocrmypdf | TrOCRmicrosoft/trocr | |
|---|---|---|
| Type | Open source | Open source |
| Price | 1 credit / page | 1 credit / page |
| Per 1,000 pages | $1.00 | $1.00 |
| Typical speed | 1.0 s / page | 1.2 s / page |
| Best for | Searchable PDFs from scans | Handwritten text lines |
| Inputs | PDF, images | images |
| Languages | 100+ languages (via Tesseract) | English |
| Max pages per request | 1,000 | 100 |
| Tables | No | No |
| Handwriting | No | ✓ Yes |
| Math | No | No |
| Bounding boxes | No | No |
| Confidence | No | No |
| Forms | No | No |
| Multilingual | ✓ Yes | 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
OCRmyPDF
Command-line tool that adds a searchable text layer to scanned PDFs, using Tesseract.
OCRmyPDF detailsTrOCR
Transformer text recognition model. Reads single text lines, including handwriting.
TrOCR detailsUse one, fall back to the other
Request body
{
"model": "ocrmypdf/ocrmypdf",
"fallbacks": ["microsoft/trocr"],
"file_url": "https://example.com/document.pdf"
}