OCRRouterGet API key

OCRmyPDF vs TrOCR

OCRmyPDF is faster; only OCRmyPDF supports multilingual; only TrOCR supports handwriting.

OCRmyPDFocrmypdf/ocrmypdfTrOCRmicrosoft/trocr
TypeOpen sourceOpen source
Price1 credit / page1 credit / page
Per 1,000 pages$1.00$1.00
Typical speed1.0 s / page1.2 s / page
Best forSearchable PDFs from scansHandwritten text lines
InputsPDF, imagesimages
Languages100+ languages (via Tesseract)English
Max pages per request1,000100
TablesNoNo
HandwritingNo✓ Yes
MathNoNo
Bounding boxesNoNo
ConfidenceNoNo
FormsNoNo
Multilingual✓ YesNo
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

OCRmyPDF

Command-line tool that adds a searchable text layer to scanned PDFs, using Tesseract.

OCRmyPDF details

TrOCR

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

TrOCR details

Use one, fall back to the other

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

Questions

More comparisons

OCRmyPDF alternativesTrOCR alternatives