Who it is forA researcher, paralegal, or office worker with a folder of scanned PDFs who needs editable text without a GPU or a cloud upload.
The problemScanned PDFs cannot be searched, quoted, or edited, and manual retyping is slow.
The outcomeOne .md file per input PDF in a results folder, with headings, paragraphs, lists, and tables kept where the layout allows.
What you need first
- 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
Steps
- 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.
- If a run hits an unreadable file, note its name; the CLI continues past it and exits with 1 if any failed.
Prompt for your agent
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.
Caveat. The code is Apache 2.0, but the model weights use a modified OpenRAIL-M license that limits some commercial and competitive uses, so check the license before using it in a product.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Disclaimer
Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page