Receipt OCR Tracker
Quick Start
- Camera snap receipt → save ~/storage/downloads/photo.jpg
- cd scripts
- python3 ocr.py ~/storage/downloads/photo.jpg
- expenses.csv ready.
Examples
Grocery receipt: Input: Milk $5.99, Bread $12.50, Total $19.24 (GST $1.75) Output CSV: date,item,amount,gst,total 2026-03-28,Milk,5.99,0.60,6.59 2026-03-28,Bread,12.50,1.25,13.75 Total,,19.24,1.85,21.09
Business lunch: Parses subtotal, tax, tip, total.
Parsing Rules
- Amount: $(\d+.\d{2})
- Date: \d{1,2}/\d{1,2}/\d{4}
- Item: Line before amount.
- Total: Last $ line.
85% accuracy blurry OK.
Usage Workflow
User: "OCR this receipt photo.jpg" Agent: exec ocr.py → CSV attach MD summary.
Troubleshooting
No tesseract: pkg install tesseract Blurry: Resnap high light. No PIL: pkg install python-pillow