Receipt OCR with structured total

loupe ●●○

Take a photo of a receipt, OCR it, and extract the store, line items, and total as structured JSON. Schema enforcement means clean data every time.

$ loupe ocr receipt.jpg | llm -m apple "extract store info and itemized receipt" \ --schema '{"type":"object","properties":{"store":{"type":"string"}, "items":{"type":"array","items":{"type":"object","properties": {"name":{"type":"string"},"price":{"type":"number"}},"required": ["name","price"]}},"total":{"type":"number"}},"required": ["store","items","total"]}'
{"store":"Corner Grocery", "items":[{"name":"Oat Milk","price":5.99}, {"name":"Sourdough","price":6.50}, {"name":"Avocados x3","price":4.50}, {"name":"Coffee Beans","price":14.99}], "total":34.82}
Requires: loupe, llm