OCRRouter

OCRmyPDF vs Kraken

Pick OCRmyPDF to make scanned modern PDFs searchable and PDF/A compliant on any CPU machine. Pick Kraken for historical manuscripts, early prints and right-to-left or non-Latin scripts, where you can train on your own material. The main split is job type: OCRmyPDF adds a text layer to a PDF, while Kraken is a trainable recognition system that outputs ALTO, PageXML and hOCR.

OCRmyPDFocrmypdf/ocrmypdfKrakenkraken/kraken
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 scansHistorical documents and manuscripts
InputsPDF, imagesimages
Languages100+ languages (via Tesseract)Many scripts, incl. right-to-left
Max pages per request1,000500
TablesNoNo
HandwritingNo✓ Yes
MathNoNo
Bounding boxesNo✓ Yes
ConfidenceNoNo
FormsNoNo
Multilingual✓ Yes✓ Yes
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, with the OCR layer inserted losslessly where possible.
  • You run an office scanner pipeline and want a command-line tool that spreads work across all CPU cores.
  • You need 100+ languages through Tesseract language packs without training anything.

Choose Kraken if

  • You transcribe historical manuscripts or early prints and need trainable layout analysis, reading order and character recognition.
  • You work with Arabic, Hebrew or other scripts that need right-to-left, BiDi or top-to-bottom support.
  • You feed digital humanities tools that expect ALTO, PageXML, abbyyXML or hOCR, and you can start from community models on Zenodo.

Key differences

OCRmyPDFKraken
LicenceMPL-2.0Apache-2.0
How you run itCommand-line tool, local, CPU only, uses all coresPython library installed with pip on Linux or macOS (x64 or ARM, Python 3.10 to 3.13); no Windows support
Output formatsSearchable PDF/A, plain textALTO, PageXML, hOCR, plain text, bounding boxes
Target materialScanned PDF archives, PDF/A workflows, office scanner pipelinesHistorical manuscripts, early prints, non-Latin and RTL scripts
TrainingNone. Accuracy is capped by Tesseract, with no layout, table or Markdown outputTrainable layout, reading order and recognition; usually needs training on your own material for good accuracy
PriceFree, self-hosted (you pay for compute)Free, self-hosted (you pay for compute)
Known failure--skip-text with default PDF/A output removes form fields (issue #1790); hangs on PDFs whose forms share one Resources dictionary (issue #1763)Install can fail with a dependency conflict (issue #816); learned line order is lost in segmentation and text output (issue #820)

Sources

What each one is

OCRmyPDF

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

OCRmyPDF details

Kraken

OCR engine for historical documents and manuscripts, with trainable models for unusual scripts.

Kraken 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": ["kraken/kraken"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

OCRmyPDF alternativesKraken alternativesBest OCR models in 2026