OCRRouter

Kraken vs Florence-2

Pick Kraken for historical manuscripts, early prints and right-to-left or other non-Latin scripts, where you can train layout analysis and recognition on your own material. Pick Florence-2 for scene text and short English labels where you need a small model that returns text with boxes. Neither is built for modern business documents or full-page conversion.

Krakenkraken/krakenFlorence-2microsoft/florence-2
TypeOpen sourceOpen source
Price1 credit / page1 credit / page
Per 1,000 pages$1.00$1.00
Typical speed1.5 s / page0.8 s / page
Best forHistorical documents and manuscriptsLightweight OCR with boxes
Inputsimagesimages
LanguagesMany scripts, incl. right-to-leftEnglish
Max pages per request500500
TablesNoNo
Handwriting✓ YesNo
MathNoNo
Bounding boxes✓ Yes✓ 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 Kraken if

  • Your material is historical manuscripts or early prints, or uses Arabic, Hebrew or other RTL scripts.
  • You need ALTO, PageXML or hOCR output for digital humanities tools.
  • You can train layout analysis, reading order and recognition on your own pages, and can use Linux or macOS.

Choose Florence-2 if

  • You need lightweight OCR for scene text or short labels in English, with quadrilateral boxes per text line.
  • You want one 0.23B or 0.77B MIT-licensed model that also does captioning, detection and grounding.
  • You are building a pipeline that mixes OCR with detection and can accept plain text plus boxes as output.

Key differences

KrakenFlorence-2
LicenceApache-2.0MIT
How you run itPython library installed with pip on Linux or macOS (x64 or ARM, Python 3.10 to 3.13). No Windows support.Self-hosted through Transformers.
PriceFree, self-hosted. You pay for compute.Free, self-hosted. You pay for compute.
Output formatsALTO, PageXML, hOCR, plain text, bounding boxesPlain text and bounding boxes. No Markdown, tables or LaTeX.
Scripts and languagesBuilt for non-Latin scripts, with right-to-left, BiDi and top-to-bottom support.Best suited to English. Chinese output is mostly wrong because the vocabulary lacks CJK characters.
Training and accuracyLayout analysis, reading order and recognition are trainable. Usually needs training on your own material for good accuracy.Prompt-based, no training step described. Spelling errors and missing spaces were seen on cursive handwriting and French text.
Known failureInstall can fail with a dependency conflict (issue #816). Learned line order is lost in segmentation and text output (issue #820).Continued-pretrained checkpoint used only 0.1B samples and might not be well trained, per the model card.

Sources

What each one is

Kraken

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

Kraken details

Florence-2

Small Microsoft vision model (0.23B and 0.77B) with OCR and OCR-with-regions tasks that return text with boxes.

Florence-2 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 10 files at onceNo file?

Use one, fall back to the other

{"model": "kraken/kraken","fallbacks": ["microsoft/florence-2"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Kraken alternativesFlorence-2 alternativesBest OCR models in 2026