Fields from receipt and form photos
Send Qwen3.7-Flash each photo with a JSON schema and ask for the fields plus a check that the numbers add up. Turn thinking off for clean scans, and route every flagged receipt to a person.
Example: Do the numbers on this receipt add up?
Material
- Receipt photo
- Harbor Café, 2026-11-14. Subtotal 18.40, tax 1.66, total 21.06.
- Schema
- merchant, date, subtotal, tax, total, needs_review.
PromptExtract merchant, date, subtotal, tax and total from the receipt photo as JSON, and set needs_review to true if subtotal plus tax does not equal the total.
Sample answer · written by hand to show the reasoning
{"merchant": "Harbor Café", "date": "2026-11-14", "subtotal": 18.40, "tax": 1.66, "total": 21.06, "needs_review": true}. 18.40 + 1.66 = 20.06, so the printed total is 1.00 higher than the sum; a person should check whether a line is cut off in the photo or the total was misread.