Indra OCR
datalab-to
A compact OCR pipeline that runs on CPU with ONNX Runtime and turns PDFs and scans into markdown or JSON.
What is Indra OCR?
A Python package from Datalab that reads PDFs and images into markdown, text or JSON with line boxes and layout labels. It runs on ONNX Runtime without PyTorch or a GPU, covers 80+ languages and handwriting, and uses a PDF's text layer where one exists. The models, about 114 MB with math recognition, download from Hugging Face on first run. Datalab positions its hosted Chandra platform as the option for the hardest documents.
| Fact | Value |
|---|---|
| Maintainer | datalab-to |
| GitHub stars | 2,044 (as of 2026-12-02) |
| Forks | 215 |
| License | Apache-2.0 |
| License type | Open weight, with conditions |
| Model license | Modified OpenRAIL-M (free for research, personal use and startups under $5M funding or revenue; no competing use against Datalab's API) |
| Category | Vectors, documents and extraction |
| Status | Rising |
| Edition | 2026-11 |
| Last verified | 2026-12-02 |
Indra OCR in depth
OCR has split into two camps: classic engines like Tesseract that run anywhere but struggle with layout, tables and non-Latin scripts, and large vision-language models that read well but want GPUs or a paid API. Indra OCR, from Datalab, aims for the gap between them. It is a compact pipeline that runs on ONNX Runtime on a CPU and turns PDFs and images into markdown, text or JSON with line boxes, layout labels and reading order.
The pipeline combines several small models: recognizers per script group, layout and table models, language models and, since 1.2.0, a math reader that writes formulas as inline LaTeX. The default download is about 114 MB from Hugging Face. For digital PDFs it reads the text layer and OCRs only what is missing. The README publishes a versioned benchmark, 78.9 on OmniParseBench with math enabled and 71.6 without, plus throughput tables, and says at 32 cores it is about 15 times faster than Tesseract. Those are Datalab's own runs, though the README documents the harness and notes where an earlier leaderboard score did not reproduce.
The natural users are teams that convert large piles of clean printed PDFs and scans to markdown for search or RAG on ordinary servers, and developers who want a pip-installable local OCR that keeps documents on their own machine. It is tested on Linux (x86_64 and aarch64) and Apple silicon macOS, with a local web viewer and a CLI that uses all usable cores.
The main caveat is the license structure. The code is Apache-2.0, but the model weights are under a modified OpenRAIL-M license: free for research, personal use and startups under $5M in funding or revenue, and not usable competitively with Datalab's API. Above that you need a commercial license from Datalab, so this is open-weight rather than fully open. The README is also candid about limits: handwriting, complex tables and degraded scans are weak (29.5% on the benchmark's degraded-scan tests), and it points to the paid Chandra platform for those.
The verdict: Indra is a credible, well-documented CPU OCR from a company that does this for a living, and its honesty about limitations is a point in its favor. Use it for clean documents when the model license fits your situation. Skip it, or test carefully, for handwriting, messy scans or commercial products above the startup threshold, and read MODEL_LICENSE before building on it.
Pros & Cons
Pros
- Runs on plain CPUs with ONNX Runtime, no PyTorch and no GPU, installed with a single pip command
- Unusually transparent benchmarks: versioned OmniParseBench results, a throughput table and a candid limitations section in the README
- Maintained by an established document-AI company, with releases from v1.1.0 (19 October) to v1.2.0 (24 November 2026)
Cons
- The model weights are not under the Apache-2.0 code license; commercial use above the startup threshold needs a separate license from Datalab
- The project says handwriting, complex tables and degraded scans are weak spots (29.5% on the benchmark's degraded-scan tests) and points to its paid Chandra platform for them
- The speed comparison (about 15x Tesseract at 32 cores) and the 78.9 OmniParseBench score are the vendor's own measurements, not independently reproduced
- Tested on Linux and Apple silicon macOS; Windows is not listed
License
Apache-2.0 (Open weight, with conditions) - model license: Modified OpenRAIL-M (free for research, personal use and startups under $5M funding or revenue; no competing use against Datalab's API)
The code is Apache-2.0, but the model weights are under a modified OpenRAIL-M license and are needed to run the tool.
When it is interesting
Batch-converting clean printed PDFs and scans to markdown on CPU-only servers or laptops, where a small local model beats shipping documents to a cloud OCR.
When it is too early
If you need reliable handwriting, complex tables or old degraded scans, or you are a company above the startup threshold that cannot accept the model license terms.
Commercial alternative & related
- Commercial counterpart: ABBYY FineReader
This repo featured in the 2026-11 edition of the Open-Source AI Radar.
langextract
Python library from Google for LLM-powered structured extraction with source grounding.
LEANN
StarTrail-org
RAG on everything - graph-based vector index claiming 97% storage savings for private on-device search.
turbovec
RyanCodrai
Rust vector index with TurboQuant compression (ICLR 2026) - SIMD kernels, online ingest.