OCRRouter

docTR vs Nanonets-OCR

Pick docTR when you need word-level text with coordinates from invoices or receipts and want to feed your own extraction code, under an Apache-2.0 licence. Pick Nanonets-OCR when you need printed business PDFs turned into Markdown, with signatures, watermarks, checkboxes and flowcharts tagged. The main split is output: docTR returns words and lines only, Nanonets-OCR returns Markdown, HTML, LaTeX and Mermaid.

docTRmindee/doctrNanonets-OCRnanonets/nanonets-ocr
TypeOpen sourceOpen source
Price1 credit / page2 credits / page
Per 1,000 pages$1.00$2.00
Typical speed0.9 s / page1.8 s / page
Best forWord-level OCR with positionsMarkdown with semantic tags
InputsPDF, imagesPDF, images
LanguagesMainly Latin scriptsMultilingual
Max pages per request500500
TablesNo✓ Yes
HandwritingNoNo
MathNo✓ Yes
Bounding boxes✓ YesNo
Confidence✓ YesNo
FormsNo✓ Yes
MultilingualNo✓ 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 docTR if

  • You need a nested page, block, line and word structure with coordinates as JSON, or bounding boxes for downstream extraction.
  • You want a clear Apache-2.0 licence, plus a choice of detection and recognition architectures and a key information extraction predictor.
  • You run on CPU or an NVIDIA GPU and want ready Docker images (GPU images need CUDA 12.2 or newer on the host).

Choose Nanonets-OCR if

  • You need printed PDFs converted to Markdown for LLMs, including tables, LaTeX equations and HTML output.
  • Your documents carry signatures, watermarks, image descriptions or checkboxes, which the model tags or converts to unicode symbols.
  • You need flowcharts and org charts extracted as Mermaid code.

Key differences

docTRNanonets-OCR
LicenceApache-2.0Not stated on the Nanonets-OCR2-3B model card (no licence tag); the base model is Qwen2.5-VL-3B
How you run itPython library on PyTorch, with Docker images; CPU or NVIDIA GPUSelf-host the weights from Hugging Face; fine-tuned from Qwen2.5-VL-3B (3B, about 4B params listed on Hugging Face)
PriceFree, self-hosted (you pay for compute)Free, self-hosted (you pay for compute)
Output formatsJSON, plain text, bounding boxesMarkdown, HTML, LaTeX, Mermaid
Tables and formulasNo table, formula or Markdown output; words and lines onlyDistinguishes inline and display LaTeX equations; Markdown and HTML output
BenchmarksNot publishedOCR2-3B: olmOCR-bench overall 69.5, DocVQA 89.43, ChartQA 78.56 (reported by the authors)
Known failureCropping images leads to poorer results (issue #2007); split-crop merging misjoins readings across repeated characters (issue #2229)Not trained on handwriting and can hallucinate; one handwriting test saw generation loops with CER up to 2100% and 69.1s per image on an L4; trained on a fixed prompt, so other prompts are expected to hallucinate

Sources

What each one is

docTR

Open-source OCR library from Mindee with separate text detection and recognition models.

docTR details

Nanonets-OCR

Open image-to-Markdown model that tags tables, equations, signatures, watermarks and checkboxes.

Nanonets-OCR 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": "mindee/doctr","fallbacks": ["nanonets/nanonets-ocr"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

docTR alternativesNanonets-OCR alternativesBest OCR models in 2026