基于OCR的收据跟踪器,用于费用、旅行和自由职业记录,使用Tesseract从收据或发票中提取日期、供应商、金额、税费、里程、项目等信息。
Acquire Image: read tool on image path (supports jpg, png, pdf first page).
Setup tesseract: text
exec pip install tesseract
Tesseract: exec sudo apt update && sudo apt install tesseract-ocr
Extract Text: text
# Variant command for tesseract
exec tesseract --image_path image.jpg --output ocr.txt
Parse Fields: exec python3 scripts/parse_receipt.py ocr.txt
Log Data: Write to expense_log.csv or json.
Use regex/scripts for receipt-specific fields: total, subtotals, taxes, odometer, dates.
Custom parsers for structured extraction.
Field mappings and examples.