qmetrics.net

LLM Aided OCR

LLM post-processing for scanned PDF OCR text

A Python CLI that runs Tesseract on PDFs, then uses local or cloud LLMs to fix OCR errors and optionally emit Markdown.

Overview

LLM Aided OCR turns scanned PDFs into cleaner text by combining classical OCR with language-model correction. Pages render to images, pass through preprocessing and Tesseract, then move through chunked LLM passes that fix recognition mistakes and optionally format results as Markdown.

The pipeline can strip recurring headers and page numbers, preserve footnotes across page breaks, stitch chunk boundaries deterministically, and score output against raw OCR using conservation and similarity checks. Processing supports asynchronous API calls with bounded concurrency or local GGUF models through llama-cpp, plus optional GPU acceleration for local inference.

Configuration uses environment variables to pick OpenAI, Anthropic, or a local model, set token limits, toggle Markdown formatting, and control PDF rendering DPI. Users install Tesseract separately on the host alongside Python dependencies managed through the project setup.

Typical outputs are a raw OCR text file and a corrected Markdown or plain-text file for the same document basename, with detailed logging across conversion, chunking, correction, and quality assessment stages.

Key features

  • PDF to image conversion for OCR
  • Tesseract text extraction with preprocessing
  • LLM OCR error correction per chunk
  • Optional Markdown structuring
  • OpenAI, Anthropic, or local LLM backends
  • Asynchronous API chunk processing
  • Header and page number suppression
  • Quality assessment against raw OCR

Use cases

  • Cleaning scanned PDF OCR output
  • Producing Markdown from digitized books
  • Batch correcting noisy document text
  • Offline OCR cleanup with local LLMs
  • Preparing archives for search or editing

Tags

Similar software

Browser Use

Open-source Python browser agent with hosted stealth cloud browsers

Open-source browser agent that completes tasks in a real browser by writing Python against Chrome DevTools Protocol. Runs on any LLM, locally or on Browser Use Cloud, adding stealth browsers and a hosted agent API

★ 122.2k⟳ yesterdayMIT

DeerFlow

Open-source super agent harness for research and creation

DeerFlow is an open-source super agent harness that coordinates sub-agents, memory, sandboxes, tools, and skills for tasks from minutes to hours. It supports research, coding, and creative workflows.

★ 85.9k⟳ todayMIT

Sim

Collaborative workspace for AI agents and workflows

Sim lets teams build, deploy, and monitor AI agents and workflows in one workspace. It connects many integrations and LLMs with visual, chat, or code-based authoring.

★ 30.2k⟳ 5 days agoApache-2.0
Open Source Alternative to:DustRelevance AI

Stagehand

SDK for AI-driven browser automation

Stagehand gives agents Playwright-style browser control with natural-language act, observe, and extract helpers. It ships for TypeScript, Python, and Go with local Chrome or hosted cloud browsers.

★ 26.2k⟳ 2 days agoMIT

Skyvern

AI browser automation with a Playwright-compatible SDK and workflow builder

Skyvern automates browser-based workflows using LLMs and computer vision. It offers a Playwright-compatible Python and TypeScript SDK plus a no-code workflow builder, and can work on websites it has not seen before.

★ 23.6k⟳ todayAGPL-3.0

Coze Studio

Visual AI agent development and deployment platform

Coze Studio lets teams design agents, apps, and workflows in a browser with models, RAG, plugins, and workflows. You deploy it with Docker on your own hardware.

★ 21.8k⟳ 4 months agoApache-2.0
Open Source Alternative to:DustRelevance AI