Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Cuadre: turning Panama's paper receipts into a tax-ready spreadsheet, with Gemma on my laptop

说明与用途

Cuadre 使用本地 Gemma 4 E2B 模型,将巴拿马纸质收据转换为税务就绪的电子表格,自动化手工录入并保障隐私。

问题

Freelancers and small businesses in Panama must manually transcribe paper receipts into spreadsheets to calculate ITBMS tax credits, a tedious process that often involves blurry photos and privacy concerns.

结果

Cuadre processes 6 demo receipts in 6–27 s per image on a 16 GB RAM laptop, correctly calculates ITBMS totals, detects duplicates, flags anomalous RUCs and exempt items, and outputs a ready‑to‑use CSV for accountants.

工作流

  • Place receipt photos in a folder
  • Run the Cuadre command
  • Gemma 4 E2B reads each photo and returns a JSON with merchant, RUC, date, subtotal, ITBMS, total
  • Python code validates fields, detects duplicates and anomalies
  • Totals are calculated with Decimal math
  • Output files: recibos.csv, resumen.md, review list

证据

Cuadre does the typing. You put the receipt photos in a folder and run one command. You get: recibos.csv, resumen.md, a short list of the receipts a human should double-check

来源

The photos are read by Gemma, an open-weight model, running on my own laptop. They never leave the machine.

来源

Python standard library only at runtime, 42 tests, and a cache keyed by the photo's hash, so when you add next week's receipts and run it again, only the new photos are read.

来源

Gemma runs with temperature: 0 and thinking turned off: transcription doesn't need reasoning, and the same photo always gets the same reading.

来源

  • 记录日期: 2026-10-19T17:41:03.349Z