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

Sloth Receipts: I photograph a receipt and a local AI does my expense report

说明与用途

Sloth Receipts 自动将收据照片转换为费用 CSV,使用本地 Qwen2.5VL 模型,并标记不确定行以供人工审核。

问题

Expense reports are tedious and error‑prone when entered manually from crumpled receipts.

结果

The tool produces a ready‑to‑use expense CSV with minimal manual intervention, reducing data entry time and errors.

工作流

  • Snap a photo of the receipt and drop it in a folder
  • Run sloth_receipts.py with the folder path
  • The script hashes each image, skips already processed ones
  • Each receipt is sent twice to a local Ollama model (qwen2.5vl:3b) for OCR
  • If the two passes disagree on the total, the row is flagged needs_review with reason
  • Sanity checks flag missing totals, impossible or future dates, unknown categories
  • The script outputs expenses.csv with columns file,date,merchant,category,currency,total,needs_review,reason
  • Human reviews only flagged rows

证据

Sloth Receipts is a small Python tool that turns a folder of receipt photos into an expense spreadsheet, using an open-weight vision model running on my own laptop.

来源

Each receipt is read twice. If the two passes disagree on the total, the row is flagged needs_review instead of being silently trusted.

来源

Try it in two minutes. Install Ollama, then: ollama pull qwen2.5vl:3b python3 sloth_receipts.py ~/Receipts

来源

  • 记录日期: 2026-10-20T05:56:14.003Z