DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to check OCR results on each page in a local viewer with Indra

Drop in a scan and see lines, blocks, and reading order drawn over the page.

Short answer: Run pip install indra-ocr; then run indra-ocr-viewer and open http://localhost:8765 in a browser; drop in a PDF or an image; each page shows its lines and layout blocks over the page. All steps.

  • Research
  • Beginner
  • 15 minutes
  • From the README
  • Any agent

Who it is forA reviewer who must verify OCR accuracy on a few important pages before relying on the text, and who should not upload them to a web service.

The problemText output alone hides which lines were misread or placed in the wrong reading order.

The outcomeA browser view at localhost showing each page with its lines, layout blocks, confidences, and the markdown source.

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

  1. Run pip install indra-ocr.
  2. Run indra-ocr-viewer and open http://localhost:8765 in a browser.
  3. Drop in a PDF or an image; each page shows its lines and layout blocks over the page.
  4. Toggle lines, blocks, and reading order to find misread text or wrong order.
  5. Over SSH, forward the port with ssh -N -L 8765:localhost:8765 host as the README describes.

Prompt for your agent

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.

Caveat. The viewer's files stay on your machine according to the README, but the first run still downloads the models from Hugging Face.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for datalab-to/indra and "Check OCR results on each page in a local viewer"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer