iflytek-ocr-invoice
Installation
SKILL.md
ifly-ocr-invoice
OCR-based invoice and receipt recognition using the iFlytek (科大讯飞) API. Extracts structured fields from photos or scans of Chinese invoices and bills.
When to Use
- User provides an invoice/receipt image and wants structured data extracted
- Need to digitize paper invoices (增值税发票、出租车票、火车票、医疗票据 etc.)
- Expense report automation — extract amounts, dates, vendor info from receipts
Prerequisites
- Python 3 (standard library only, no pip install needed)
- Environment variables (get from 讯飞控制台):
IFLY_APP_ID— Application IDIFLY_API_KEY— API KeyIFLY_API_SECRET— API Secret
兼容说明:设置任意
IFLY_*凭证变量(包括空值)后,仅使用该组,缺项报错;未设置标准组时,依次尝试XFYUN_*、XFEI_*,不跨组拼接。旧前缀会在 stderr 输出一次不含凭证值的迁移提示。