Receipt OCR Extraction Skill
Extracts dates and total monetary amounts from scanned receipt images using Tesseract OCR.
Usage
pythonimport sys sys.path.insert(0, '/app/environment/skills/evo-receipt-ocr/scripts') from utils import process_all_receipts, validate_output # Process all receipts results = process_all_receipts('/app/workspace/dataset/img', '/app/workspace/stat_ocr.xlsx') # Validate output validate_output('/app/workspace/stat_ocr.xlsx')
Key Functions
preprocess_image(img)- Apply multiple preprocessing strategiesocr_image(image_path)- Run OCR with multiple configsextract_date(texts)- Extract date in ISO formatextract_total_amount(texts)- Extract total using keyword priorityprocess_receipt(image_path)- Process single receiptprocess_all_receipts(image_dir, output_path)- End-to-end pipelinevalidate_output(output_path)- Validate Excel output


