OCRRouter

OCRmyPDF vs GOT-OCR 2.0

Pick OCRmyPDF to make scanned PDF archives searchable as PDF/A on CPU-only machines. Pick GOT-OCR 2.0 when you need formulas, sheet music, chemical structures or region-specific OCR, and can run a CUDA GPU. The main split is the output: OCRmyPDF returns a searchable PDF, while GOT-OCR 2.0 returns text, Markdown or LaTeX.

OCRmyPDFocrmypdf/ocrmypdfGOT-OCR 2.0stepfun/got-ocr-2
TypeOpen sourceOpen source
Price1 credit / page1 credit / page
Per 1,000 pages$1.00$1.00
Typical speed1.0 s / page1.5 s / page
Best forSearchable PDFs from scansFormatted text, formulas and charts
InputsPDF, imagesimages
Languages100+ languages (via Tesseract)Chinese, English
Max pages per request1,000100
TablesNo✓ Yes
HandwritingNoNo
MathNo✓ Yes
Bounding boxesNo✓ Yes
ConfidenceNoNo
FormsNoNo
Multilingual✓ YesNo
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 OCRmyPDF if

  • You need validated searchable PDF/A output for archiving or compliance workflows.
  • You run on CPU only and want work spread across all cores.
  • You need Tesseract's 100+ languages through language packs.

Choose GOT-OCR 2.0 if

  • You need to read formulas, tables, charts, sheet music or chemical structures, with output as Markdown, LaTeX, TikZ, SMILES or kern.
  • You want OCR on a chosen region of a page, guided by box coordinates or color.
  • You work with English and Chinese documents and want multi-page OCR with batched inference in Hugging Face Transformers.

Key differences

OCRmyPDFGOT-OCR 2.0
What it doesAdds a Tesseract text layer to scanned PDFs580M-parameter end-to-end model that reads text, formulas, tables, charts and sheet music
Output formatsSearchable PDF, plain textPlain text, Markdown, LaTeX, TikZ, SMILES, kern
LicenceMPL-2.0Code Apache-2.0; training data CC BY-NC 4.0
HardwareCPU only; uses all coresCUDA 11.8 and PyTorch 2.0.1 per README; CPU users are pointed to a llama.cpp port
PriceFree, self-hosted (you pay for compute)Free, self-hosted (you pay for compute)
Benchmark scoresNot publishedNot published in the README
Known failureForm fields are removed with --skip-text and default PDF/A output; file size can double or quadruple with --deskew --clean-finalOutput can loop characters midway; blank images can return wrong text instead of an empty string; format mode can be much worse than plain OCR mode

Sources

What each one is

OCRmyPDF

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

OCRmyPDF details

GOT-OCR 2.0

Unified OCR model that reads plain text, tables, formulas, sheet music and charts.

GOT-OCR 2.0 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": "ocrmypdf/ocrmypdf","fallbacks": ["stepfun/got-ocr-2"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

OCRmyPDF alternativesGOT-OCR 2.0 alternativesBest OCR models in 2026