Dicklesworthstone/llm_aided_ocr

Enhances Tesseract OCR output using LLMs (local or API) for error correction, smart chunking, and markdown formatting of scanned PDFs

View on GitHub ↗Jump to charts ↓

Dicklesworthstone/llm_aided_ocr has 3k+ stars and 200+ forks on GitHub, is written in Python, and was last pushed on Oct 14, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 19 minutes ago
Added to GitGenius on September 23rd, 2026
Created on July 26th, 2023
Open Issues & Pull Requests: 0 (+0)
GitHub issues: Enabled
Number of forks: 225
Total Stargazers: 3,002 (+0)
Total Subscribers: 22 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 42.2 days
Mean response time: 195.7 days
90th percentile: 521.6 days
Tracked items: 17

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 0
New in 7 days: 0
Closed in 7 days: 0
Avg open age: N/A days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

LLM-Aided OCR is a Python tool that enhances Tesseract OCR output using large language models for error correction, smart text chunking, and markdown formatting of scanned PDFs.

The tool addresses the problem that raw OCR output from Tesseract contains errors and lacks proper formatting. It works by converting PDFs to images, running Tesseract OCR, then splitting the text into chunks and passing each through an LLM for error correction and optional markdown formatting. The system can remove duplicate content and suppress headers and page numbers. It supports both local LLMs via llama_cpp and cloud-based providers including OpenAI and Anthropic, with asynchronous processing and GPU acceleration available for local inference.

This tool suits developers working with scanned documents who need high-quality text extraction and are willing to invest in LLM processing to achieve it. It works best for documents where OCR errors significantly impact readability, such as historical letters or technical papers. The project includes example outputs showing before-and-after transformations. Anyone adopting it should be prepared to configure LLM access, either by running a local model or providing API credentials for a cloud provider.

Development activity shows consistent engagement with the codebase through regular commits and active issue management. The project maintains detailed documentation of its technical implementation, including specific function names and processing pipeline details. Error handling and retry logic are implemented for API-based LLM calls, indicating attention to reliability in production scenarios. The inclusion of quality assessment features and comprehensive logging suggests the maintainers prioritize observability and debugging capabilities.