on-internet
← Community

Receipt OCR with a vision model: one structured-output call, or a two-pass extract-then-normalize pipeline?

Stack Overflow ·

I'm building a receipt-to-ledger extractor that has to handle phone photos, scanned invoices, thermal-printer receipts, and plain-text e-receipts. Two designs come up in every writeup I can find: Single call: image in, final JSON out via a strict schema (structured outputs / response_format). Two-pass: first call transcribes the image to plain text, second call maps that text onto the schema. Does the second pass justify the extra cost and complexity in practice? What I care about getting right: totals vs. line-item math, payment-reference strings like DEBIT ****2231 (asterisk counts!), and ve

Comments

Sign in or sign up to comment and upvote.

No comments yet.