Docling OCRIndependent Docling guide

Comparison · OCR backends

Docling OCR Engines: Which One Should You Actually Run?

Docling does not ship one OCR engine, it ships an interface to several. Picking the wrong one is the difference between a two-second CPU run and a PyTorch install you regret — so here is what each engine costs and where it breaks.

Updated 2026-10-26 · 4 min read

The short version

  • –The CLI default is --ocr-engine auto. It is a sensible default, not always the best one.
  • –RapidOCR is the lightest path: ONNX, CPU-friendly, no CUDA. Its default language when you pass none is Simplified Chinese, which surprises English users.
  • –EasyOCR handles many languages at once but needs PyTorch and picks one checkpoint regardless of how many languages you list.
  • –ocrmac uses the macOS Vision framework — good Latin and CJK accuracy on a Mac with no extra model download.
  • –Nemotron-OCR is Linux + Python 3.12 + CUDA 13 only. Do not plan a cross-platform product around it.
  • –Docling publishes no cross-engine accuracy ranking, and neither does anyone honest: results depend on script, scan quality and table density.

The full list, and how you select one

Engines are named identically in the CLI (--ocr-engine) and exposed as option classes in Python (ocr_options=...). The set below is what a current install accepts:

EngineCLI valuePython options classInstall
RapidOCRrapidocrRapidOcrOptionspip install "docling[rapidocr]"
EasyOCReasyocrEasyOcrOptionspip install "docling[easyocr]"
Tesseract (CLI)tesseractTesseractCliOcrOptionssystem Tesseract + tessdata
Tesseract (binding)tesserocrtesserocr optionspip install "docling[tesserocr]" + system libs
macOS VisionocrmacOcrMacOptionspip install "docling[ocrmac]" (macOS only)
Nemotron-OCRnemotron-ocrNemotron optionspip install "docling[feat-ocr-nemotron]"
KServe v2 (remote)kserve_v2_ocrKserveV2OcrOptionsremote service + enable_remote_services=True
Automaticauto (default)——
Engine values accepted by --ocr-engine. Re-run `docling convert --help` after upgrading — this list does grow.
Selecting an engine from the command line
# lightest CPU path, small model
docling convert scanned.pdf --to md --ocr-engine rapidocr --ocr-option model_size=tiny

# German document with Tesseract
docling convert vertrag.pdf --to md --ocr-engine tesseract --ocr-lang deu

# macOS Vision
docling convert scan.pdf --to md --ocr-engine ocrmac

# turn OCR off entirely
docling convert digital.pdf --to md --no-ocr

RapidOCR — the default that punches above its weight

RapidOCR runs PaddleOCR-derived models through ONNX Runtime. No PyTorch, no CUDA requirement, small download, fast on CPU. For most English and Chinese business documents it is the engine that gets you a working pipeline in the least time.

Three things to know before you standardize on it:

  • model_size takes tiny, small (default) or medium. Docling does not benchmark or recommend one over another — tiny is the low-latency choice, medium the quality choice, and you should measure on your own scans.
  • When no language is passed, the effective default is Simplified Chinese. Pass --ocr-lang en explicitly for English documents.
  • Multiple languages are not really supported: only the first entry is used and the rest are ignored with a warning. If you need three scripts in one pass, use EasyOCR or Tesseract.

EasyOCR — many languages, heavier install

EasyOCR is the friendliest option when a document set mixes scripts. It accepts several languages, though internally it selects a single recognition checkpoint — listing forty languages is not the same as getting forty recognizers.

The cost is PyTorch. On Linux that is a multi-gigabyte wheel unless you install the CPU-only index; on an Intel Mac, Torch 2.6+ has no wheels at all (see the install guide for the workaround). If CPU-only footprint matters, RapidOCR is the better trade.

Tesseract — still the one to beat for language coverage

Tesseract has trained data for over a hundred languages and decades of tuning for print. If you need Georgian, Vietnamese diacritics, or a specific script that the newer engines do not ship, Tesseract is often the only realistic path.

The friction is all installation. You need the system package plus the language files, and Docling checks languages against your installed tessdata when the options are constructed — a missing language fails immediately rather than silently substituting English.

TESSDATA_PREFIX must point at the tessdata directory and must end with a slash. That trailing slash is the single most common Tesseract-with-Docling bug.

Installing Tesseract for Docling
# macOS
brew install tesseract leptonica pkg-config

# Debian / Ubuntu
apt-get install tesseract-ocr tesseract-ocr-eng libtesseract-dev libleptonica-dev pkg-config

# RHEL family
dnf install tesseract tesseract-devel tesseract-langpack-eng tesseract-osd leptonica-devel

# if the tesserocr binding fails to build
pip uninstall tesserocr && pip install --no-binary :all: tesserocr

ocrmac — the macOS shortcut worth knowing

On a Mac, ocrmac calls Apple's Vision framework. There is no model download, no PyTorch, and accuracy on Latin and CJK print is genuinely competitive for a zero-setup option. If your pipeline runs on macOS laptops, it is often the best default.

It is macOS-only, and its language handling is "Vision automatic" when you pass an empty language list — meaning you do not get the same explicit per-language control you get with Tesseract. For a server fleet on Linux, it is irrelevant.

Nemotron-OCR and remote KServe

Nemotron-OCR is NVIDIA's recognizer, packaged as a Docling extra. Availability is narrow: Linux x86_64, Python 3.12, CUDA 13.x. For Latin-script fallback languages Docling explicitly logs a warning that accuracy on them is untested. Treat it as an experiment unless your deployment matches those constraints exactly.

KServe v2 is the escape hatch: point Docling at a remote OCR service and let it do the recognition. It requires enable_remote_services=True in the pipeline options — without it, building the pipeline raises OperationNotAllowed rather than quietly calling out to the network. Note that the KServe client ignores the iso: language prefix and sends only the first language entry, verbatim.

How to choose in one minute

  • Just need it to work on a laptop, CPU only, English or Chinese → rapidocr.
  • Mac, no appetite for model downloads → ocrmac.
  • Many languages, willing to install PyTorch → easyocr.
  • Exotic scripts, or you already run Tesseract → tesseract.
  • NVIDIA-only cluster with CUDA 13 → try nemotron-ocr, verify on your own scans.
  • Central OCR service for many Docling workers → kserve_v2_ocr.
  • Digital PDFs, no scans → leave OCR alone; it will not run on pages that have text.

Whatever you choose, measure on your documents: 40 pages of real work, with a known-correct transcription. A benchmark on somebody else's invoices tells you almost nothing about yours.

Where the engine stops mattering

On tables, the bottleneck is usually not glyph recognition. It is structure: which cell a number belongs to, how a two-row header maps onto the data, whether a subtotal row is part of the table or a footnote. That is TableFormer's job, not the OCR engine's.

Which is why swapping engines often changes less than people expect on financial documents, and why the check that actually protects you is comparing the parsed table against the source page — see Docling to Excel for that workflow.

Frequently asked questions

Which OCR engine does Docling use by default?+

The CLI default is --ocr-engine auto, which lets Docling pick. If you need reproducible output across machines, set the engine explicitly and record it alongside the conversion.

Is RapidOCR as accurate as Tesseract?+

On clean printed Latin text they are comparable; on unusual fonts and low-quality scans results diverge and neither wins everywhere. Docling does not publish a cross-engine ranking. Test both on 20-40 real pages.

Can Docling OCR Chinese, Japanese and Korean?+

Yes — RapidOCR defaults toward Simplified Chinese, EasyOCR supports ch_sim/ch_tra/ja/ko, Tesseract needs the corresponding traineddata, and ocrmac inherits Vision support. See the OCR languages guide for the language codes.

Why does Docling warn that my extra languages are ignored?+

RapidOCR and Nemotron-OCR accept only the first language entry and warn about the rest. Use EasyOCR or Tesseract when a page really mixes scripts.

Do I need a GPU for OCR?+

No. RapidOCR runs on CPU, ocrmac uses the system framework, and Tesseract is CPU-only. A GPU speeds up layout and table models far more than it speeds up OCR.

Try it online

Run the same pipeline in the browser — no install, no uploads stored.

Try it in the browser

Keep reading