AI product Open source

Indra OCR

Indra OCR is a CPU-oriented document OCR and parsing tool developed by Datalab. It converts PDFs and images into Markdown, plain text, or JSON containing recognized lines, bounding boxes, layout blocks, labels, reading order, confidences, rotation, and skew information. It can use a digital PDF's text layer where it passes checks and OCR only missing content, or OCR every page.

View repository Mentioned in 2 videos ↓

Overview

The pipeline uses ONNX Runtime models without PyTorch to detect lines, recognize text, classify blocks such as headings, lists, tables, captions, footnotes, headers, and forms, and order them for reading. Its local viewer displays page overlays, Markdown, source lines, JSON, confidences, and per-stage timings. An optional math mode recognizes mathematical lines and emits inline LaTeX.

The Python package and CLI are distributed under Apache 2.0, while the model weights use a modified OpenRAIL-M license with additional commercial-use conditions. The models are downloaded from Hugging Face on first use; the repository reports a model size of about 18 MB. OCR support covers Latin, Cyrillic, Greek, Devanagari, Bengali, and Chinese scripts, while other scripts can be processed through digital PDF text layers. The project documents limitations for handwriting, degraded scans, complex tables, vertical text, and some scripts in scanned images.

What Indra OCR is used for

2 uses taken from transcripts — each links to the moment in the video.

  • Fast OCR tool from Data Labs that converts PDFs and images to Markdown, text, or JSON; runs on CPU via ONNX Runtime without PyTorch with models around 18 MB, and beyond reading lines it classifies headings, tables, and footnotes, orders text blocks in reading sequence, and fixes skewed pages.

  • A compact CPU-first OCR engine from Datalab that turns scanned pages and PDFs into markdown, plain text or JSON with boxes, blocks and confidences. It runs on ONNX runtime with no PyTorch and ships a CLI, Python API and local viewer. Code is Apache 2.0; model weights use a restricted license.

Videos mentioning Indra OCR

2 in the library.