Prompt
handwriting OCR accuracy bad on receipts
Latest observation
Nov 17, 2026
OpenAI APIWeb search: off
Handwriting OCR on receipts is usually bad because receipts are a worst-case input: low resolution, cramped text, faded ink, folds/glare, and messy handwriting all compound.
To improve accuracy, try this checklist:
1) Improve the image first
- Scan, don’t photograph if possible.
- Use higher resolution: aim for 300 DPI or more.
- Ensure even lighting; avoid shadows and glare.
- Keep the receipt flat and fully in frame.
- Crop to the receipt and straighten / de-skew it.
- Increase contrast and reduce noise before OCR.
2) Use the right OCR approach
- Generic OCR often struggles with handwriting.
- Use a model/tool that explicitly supports handwritten text recognition.
- If the task is specific, use field-based extraction rather than full-page OCR:
- date
- total
- merchant name
- line items
- Consider layout-aware OCR or document AI services.
3) Segment the receipt
- Detect and OCR small regions instead of the whole receipt.
- Handwriting in item lines is often easier when isolated.
- Remove non-text areas like logos, stamps, and borders.
4) Post-process the output
- Use dictionaries, merchant lists, product catalogs, and regex to correct likely mistakes.
- Apply confidence thresholds:
- low-confidence text gets flagged for review
- auto-fill only high-confidence fields
- Normalize common receipt patterns like dates and currency.
5) Train or fine-tune if needed
If you have many receipts from the same source:
- collect labeled examples
- fine-tune a handwriting OCR model
- train on your actual receipt style, not generic data
6) Set expectations
Some receipt handwriting is essentially unreadable even for humans. For those cases, a human-in-the-loop review is often the best solution.
If you want, I can help with:
- a preprocessing pipeline,
- OCR model recommendations,
- or debugging a specific receipt image / OCR output.