360 Secure SkillHub
360 安全技能中心

Receipt OCR Tracker

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

skunnyo
skunnyo
热度 47.01
最近更新 2026-05-11 17:37:48
分类:效率依赖:代码执行 / 读写文件应用场景:财务 / 数据处理 / 报告撰写 / 文件转换

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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