Gemma 4 checks my Pix receipts while I sleep: 12 of 12 verdicts right, even when it misreads
Описание и применение
Gemma 4 автоматически распознаёт скриншоты платежей Pix и, применяя набор правил, определяет, оплачены ли они, а также выявляет ошибки, позволяя владельцу магазина быстро проверить только подозрительные случаи.
Задача
Manual verification of Pix payment screenshots is tedious, error‑prone, and requires the shop owner to be awake at night.
Результат
All 12 fictional receipts were correctly classified; Gemma 4 read amounts, dates, and payer names exactly, and the rule engine produced 12/12 correct verdicts. The tool processed each receipt in about 52 s on a 2 vCPU/7 GB laptop without GPU.
Рабочий процесс
- Drop the day's Pix payment screenshots into a folder next to a CSV of open orders
- Run sloth‑receipts overnight; Gemma 4 reads each image and writes a JSONL file
- Rule‑based Python script evaluates the JSONL, applies checks in order, and produces a verdict list
- In the morning the owner reviews the PAID list and the "needs you" list
- Any flagged receipts are manually inspected and resolved
Доказательства
sloth-receipts takes that chore. The person who gets to be lazier is the shop owner who used to do it by hand before closing.
Gemma never got an amount or a name wrong. It did slip characters in long ids: Lp0oK9iJ8uH became Lp00K9ij8uH, and the blurred one gained an extra 8.
On the sample night the tool cleared 5 receipts on its own. The other 7 went to the list, each with its reason; six were real problems, and the seventh was a relative paying for a customer.
- Дата записи: 2026-10-22T00:26:10.852Z