360 Secure SkillHub
360 安全技能中心

Receipt OCR Tracker

该 Skill 将收据照片经 Tesseract OCR 转换为 CSV 费用表,并生成 Markdown 摘要;解析日期、项目、金额、税费与总计,面向自由职业者和小微企业的费用记录。材料未提供 Google Sheets 上传同步,仅输出可导入的 CSV/MD,并提示模糊照片处理与依赖缺失排障。

分类:效率
skunnyo
skunnyo
热度 33.68
最近更新 2026-05-11 17:37:48

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add skunnyo/receipt-ocr-tracker
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
receipt-ocr-tracker
description
Pixel Termux receipt snap → OCR tesseract → parse CSV expense report (date/item/amount/total tax). Triggers for "scan receipt Pixel", "OCR expense CSV", "track business receipt". Outputs Google Sheets ready CSV/MD for freelancers/small biz.

Receipt OCR Tracker

Quick Start

  1. Camera snap receipt → save ~/storage/downloads/photo.jpg
  2. cd scripts
  3. python3 ocr.py ~/storage/downloads/photo.jpg
  4. expenses.csv ready.

Examples

Grocery receipt: Input: Milk $5.99, Bread $12.50, Total $19.24 (GST $1.75) Output CSV: date,item,amount,gst,total 2026-03-28,Milk,5.99,0.60,6.59 2026-03-28,Bread,12.50,1.25,13.75 Total,,19.24,1.85,21.09

Business lunch: Parses subtotal, tax, tip, total.

Parsing Rules

  • Amount: $(\d+.\d{2})
  • Date: \d{1,2}/\d{1,2}/\d{4}
  • Item: Line before amount.
  • Total: Last $ line.

85% accuracy blurry OK.

Usage Workflow

User: "OCR this receipt photo.jpg" Agent: exec ocr.py → CSV attach MD summary.

Troubleshooting

No tesseract: pkg install tesseract Blurry: Resnap high light. No PIL: pkg install python-pillow