{"repo":"Dicklesworthstone/llm_aided_ocr","free":true,"listed":false,"github":"https://github.com/Dicklesworthstone/llm_aided_ocr","clone":"git clone https://github.com/Dicklesworthstone/llm_aided_ocr.git","description":"Enhances Tesseract OCR output using LLMs (local or API) for error correction, smart chunking, and markdown formatting of scanned PDFs","language":"Python","stars":2989,"topics":["ai-assist","llama2","llm","ocr","tesseract","ocr-correction"],"license":null,"category":"media-processing","readme_excerpt":"LLM-Aided OCR Project Introduction The LLM-Aided OCR Project is an advanced system designed to significantly enhance the quality of Optical Character Recognition (OCR) output. By leveraging cutting-edge natural language processing techniques and large language models (LLMs), this project transforms raw OCR text into highly accurate, well-formatted, and readable documents. Example Outputs To see what the LLM-Aided OCR Project can do, check out these example outputs: - Original PDF - Raw OCR Output - LLM-Corrected Markdown Output Features - PDF to image conversion - OCR using Tesseract - Advanced error correction using LLMs (local or API-based) - Smart text chunking for efficient processing - Markdown formatting option - Header and page number suppression (optional) - Quality assessment of the final output - Support for both local LLMs and cloud-based API providers (OpenAI, Anthropic) - Asynchronous processing for improved performance - Detailed logging for process tracking and debugging - GPU acceleration for local LLM inference Detailed Technical Overview PDF Processing and OCR 1. PDF to Image Conversion - Function: convert pdf to images() - Uses pdf2image library to convert PDF pages into images - Supports processing a subset of pages with max pages and skip first n pages parameters 2. OCR Processing - Function: ocr image() - Utilizes pytesseract for text extraction - Includes image preprocessing with preprocess image() function: - Converts image to grayscale - Applies binar","default_branch":null,"files":null,"tree":[],"storefront":"/r/Dicklesworthstone","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Dicklesworthstone/llm_aided_ocr/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}