Turning scanned documents into tables
Send Qwen3.8-27B a scan or phone photo of a quote or invoice and ask it to extract item, quantity and unit price into set columns and work out the subtotals. Check the total against the one printed on the original, and recheck any row that doesn’t match.
Example: Does the total on this quote add up?
Material
- Scanned quote
- A4 paper 20 boxes × $85; ink cartridges 6 × $120; staplers 10 × $32. Total: $2,740.
- Rules
- Subtotal = quantity × unit price; round to whole dollars.
PromptPut each line of the quote into four columns (item, quantity, unit price, subtotal), add up the total, and compare it with the total printed on the document.
Sample answer · written by hand to show the reasoning
Subtotals: paper $1,700, ink cartridges $720, staplers $320, for a total of $2,740, which matches the document. If any figure on the scan is hard to read, check the quantity and unit price against the original before booking it.