What do you want to do?
4 use cases
-
Turn a folder of scanned PDFs into markdown files
Batch-convert scanned PDFs to one markdown file each, using all CPU cores.
View prompt
In the repo datalab-to/indra, install indra-ocr with pip and run `indra-ocr <folder>/*.pdf --out results/`. Expected output: one .md file per input PDF in results/. Verify that each .md file is non-empty and that the CLI exit code is 0, or list the files that failed.
-
Get OCR lines and boxes as JSON for a data pipeline
Extract each line with its box, confidence, and layout label as JSON.
View prompt
Using the repo datalab-to/indra, install indra-ocr and run `indra-ocr <input-file> --format json` on <input-file>. Expected output: JSON with lines (box, text, confidence) and blocks (label, bbox, text) per page. Verify that the block labels in the output match the labels listed in the README, such as Text, Table, and Form.
-
Check OCR results on each page in a local viewer
Drop in a scan and see lines, blocks, and reading order drawn over the page.
View prompt
In the repo datalab-to/indra, install indra-ocr and start `indra-ocr-viewer --port 8765`. Expected output: a local web page at http://localhost:8765 that shows OCR lines and layout blocks for a dropped file. Verify that the page loads and that line confidences are visible.
-
Read mixed-language and handwritten scans in one run
OCR scans in many scripts and handwriting, with a CJK-only or RTL-only fallback when needed.
View prompt
Using the repo datalab-to/indra, install indra-ocr and run `indra-ocr <file>.pdf --mode ocr --timings` on <file>.pdf. Expected output: markdown with the text in each script and per-page timings on stderr. Verify the text for each script against the source page, since handwriting accuracy is limited.
How to use Indra
- Check you have what it needs: Python 3.10 or newer (the README says it is tested on Linux and macOS); pip to install the indra-ocr package; An internet connection for the first run, which downloads about 76 MB of models from Hugging Face.
- Open datalab-to/indra on GitHub and read the README and license.
- Run
pip install indra-ocr. - Move the scanned PDFs into one folder and open a terminal in that folder.
- Run
indra-ocr *.pdf --out results/to write one .md file per input. - Open a few files in results/ and compare them with the original pages.
These steps come from our top use case, Turn a folder of scanned PDFs into markdown files, which also has a copy-paste agent prompt.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forPeople with scanned PDFs or photographed pages who need searchable text on a laptop or CPU-only server, and developers who want OCR output with boxes and layout labels in their own pipelines.
- Why it is hot
- LanguagePython
- Sourcegithub.com/datalab-to/indra · Back to Hot repos
Requirements
- Python 3.10 or newer (the README says it is tested on Linux and macOS)
- pip to install the indra-ocr package
- An internet connection for the first run, which downloads about 76 MB of models from Hugging Face
- The PDFs or images to read
Maintain Indra? Add the Featured on Deduped badge
Paste this into your README:
[](https://dedupedai.com/use-cases/datalab-to-indra/?ref=badge)
Questions about Indra
What is Indra?
Indra OCR is a CPU-based OCR tool that turns PDFs and images into markdown, text, or JSON with boxes, layout blocks, and reading order. It is an open-source project on GitHub: https://github.com/datalab-to/indra.
Who is Indra for?
People with scanned PDFs or photographed pages who need searchable text on a laptop or CPU-only server, and developers who want OCR output with boxes and layout labels in their own pipelines.
What can I do with Indra?
4 use cases so far, for example: Turn a folder of scanned PDFs into markdown files; Get OCR lines and boxes as JSON for a data pipeline; Check OCR results on each page in a local viewer. Each has steps and a copy-paste agent prompt.
What do I need to run Indra?
Python 3.10 or newer (the README says it is tested on Linux and macOS); pip to install the indra-ocr package; An internet connection for the first run, which downloads about 76 MB of models from Hugging Face; The PDFs or images to read.
What are alternatives to Indra?
Other hot AI repos in Research: Scientific Agent Skills, Speaker Mem R1, DSH Council, Evo Bot, AI Engineering Course.
Is Indra safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.