Notinha
Receipt and invoice data extraction (OCR)
Photograph a crumpled receipt or drop an invoice PDF, and every field lands in the spreadsheet with its confidence and the exact spot it was read from.
Concept project · fictional brand and sample dataApp in Portuguese
- 38
- automated tests passing
- 97.5%
- field accuracy on 60 held-out documents, LLM off
- 91.7%
- documents with store, tax ID, date and total all correct
- 50
- receipts per batch upload
The brief
Small food businesses buy all week, and every purchase leaves a receipt: a crumpled thermal slip, a parking ticket, a service invoice as a PDF. Someone at the bookkeeping office types each one in by hand, which is slow and error-prone, and cloud OCR means sending financial documents to third parties and paying per page.
What I built
- Upload of photos and PDFs, one at a time or in batches of up to 50, with a live queue
- Image preparation: finds the paper on the table, flattens the perspective and removes skew; digital PDFs skip OCR and use their text layer
- OCR with boxes on the CPU, plus a fix that restores the spaces the recogniser drops in Latin text
- Field extraction: store, tax ID with check digits, date, item lines, discount, service fee, total, taxes and payment method
- Review screen where hovering a field lights up its boxes on the image, with inline editing and validation
- Spreadsheet view and exports: XLSX with three sheets and formulas, and CSV ready for Brazilian Excel
The decision that mattered
Check the arithmetic before trusting the OCR
Every field's confidence starts from the OCR score and the strength of the rule that found it, then the numbers are checked against each other: items must add up to the subtotal, subtotal minus discount plus service fee must equal the total, and tax IDs must pass their check digits. A passed check raises confidence; anything under 85 % sends the receipt to review. The local LLM is asked only for fields that are still missing, and its answers are validated in code and labelled as AI.