Install
openclaw skills install rapid-ocr专业离线票据OCR工具,支持增值税发票、火车票、飞机票、出租车票等高精度字段提取与批量识别。
openclaw skills install rapid-ocr专业的票据 OCR 识别技能,支持增值税发票、火车票等各类票据的识别。
首次运行需要网络下载模型(约 13MB),后续使用完全离线。
安全元数据说明:
rapidocr-onnxruntime 首次调用时会自动下载模型| 阶段 | 网络 | 数据量 |
|---|---|---|
| 安装依赖 | 需要 | ~50 MB |
| 首次运行 | 需要 | ~13 MB |
| 后续使用 | 不需要 | 0 |
rapidocr-onnxruntimerapid-ocr/
├── rapidocr_minimal.py # 主程序入口 (~4KB)
├── test_ocr.py # 测试套件
├── README.md # 用户文档
├── TRANSPARENCY.md # 透明度说明
├── SKILL.md # 本文件
├── claw.json # OpenClaw 配置
├── requirements.txt # Python 依赖
└── models/
└── README.md # 模型说明
python rapidocr_minimal.py ocr image.jpg
python rapidocr_minimal.py invoice invoice.jpg
python rapidocr_minimal.py train ticket.jpg
from rapidocr_minimal import RapidOCRSkill
skill = RapidOCRSkill()
result = skill.ocr_image("image.jpg")
print(result['full_text'])
# 发票识别
invoice_data = skill.ocr_invoice("invoice.jpg")
print(invoice_data['structured_data'])
python test_ocr.py
MIT License