发票识别(invoice-ocr-xy)翔云平台

v2.0.0

发票 OCR 识别技能。扫描文件夹中的发票文件(PDF/图片),调用翔云 OCR API 识别发票信息。支持 40+ 种发票类型(增值税发票、火车票、出租车票、机票行程单、定额发票、机动车销售发票、过路过桥费发票等)。使用场景:(1) 用户提到"发票识别" (2) 用户需要批量处理发票 (3) 用户提到翔云 OC...

1· 115·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for liudengkui/invoice-ocr-xy.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "发票识别(invoice-ocr-xy)翔云平台" (liudengkui/invoice-ocr-xy) from ClawHub.
Skill page: https://clawhub.ai/liudengkui/invoice-ocr-xy
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install invoice-ocr-xy

ClawHub CLI

Package manager switcher

npx clawhub@latest install invoice-ocr-xy
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
Name/description match the code and SKILL.md: the script scans files, encodes them, and posts to netocr.com. No unrelated credentials, endpoints, or binaries are requested.
Instruction Scope
SKILL.md explicitly instructs the agent to ask the user for netocr_key and netocr_secret or to run --config; the script reads files from user-specified paths and sends image data to the declared NetOCR endpoint. This is within scope, but the skill requires the user to disclose sensitive API keys.
!
Install Mechanism
There is no declared install spec, but the script will attempt to pip-install openpyxl at runtime via subprocess.check_call if needed. Runtime automatic installs fetch code from PyPI and execute it locally, which increases risk compared with an instruction-only skill.
Credentials
The skill requests no environment variables but requires the user to supply netocr_key and netocr_secret. That is appropriate for this integration, but those credentials are stored in a plain config.json under the skill folder (unencrypted), which may be undesirable for sensitive accounts.
Persistence & Privilege
always:false and user-invocable:true. The skill writes a local config.json in its own directory and may install Python packages on demand; it does not request elevated system privileges or modify other skills.
Assessment
This skill appears to do what it claims (upload invoice images to 翔云/NetOCR and return JSON/Excel). Before installing or using it: (1) only provide a NetOCR API key/secret that you trust and consider creating a limited/quota-limited key for this purpose; (2) be aware credentials are stored in plaintext in the skill's config.json (inspect and move to a safer storage if needed); (3) the script may auto-install openpyxl from PyPI at runtime — if you prefer, pre-install dependencies in a controlled environment; (4) review the script yourself (or run it in an isolated environment) if you have high security/privacy requirements; (5) verify the netocr.com endpoint and your account billing settings to avoid unexpected charges.

Like a lobster shell, security has layers — review code before you run it.

latestvk97ear1tq81pwzy7v30d0kavn984wc0w
115downloads
1stars
4versions
Updated 1w ago
v2.0.0
MIT-0

发票 OCR 识别技能

批量识别发票。

⚠️ 首次使用必须配置凭证

此技能需要翔云 OCR 服务,使用前必须先配置凭证!

方式一:向用户提供凭证(推荐)

主动询问用户:

"使用此技能需要翔云 netocr_key 和 netocr_secret,请提供这两个凭证。
获取方式:翔云个人中心"

然后运行:

python scripts/recognize_invoices.py --config

方式二:引导用户自行配置

告诉用户:

"请先运行以下命令配置翔云凭证:"

python ~/.openclaw/skills/invoice-ocr/scripts/recognize_invoices.py --config

特点

  • 40+ 发票类型 - 自动识别发票类型
  • 支持 PDF/OFD - 电子发票友好

支持的发票类型

票种名称票种代码
增值税专用发票01
机动车销售统一发票03
增值税普通发票04
增值税专用电子发票08
增值税电子普通发票10
增值税普通发票(卷票)11
通行费增值税电子普通发票14
二手车销售统一发票15
数电发票(增值税专用发票)09
数电发票(普通发票)83
数电发票(航空运输电子客票行程单)61
数电发票(铁路电子客票)62
电子发票(机动车销售统一发票)63
数电发票(二手车销售统一发票)64
电子发票(普通发票) 通行费72
数电纸质发票(增值税专用发票)91
数电纸票发票(普通发票)92
数电纸质发票(机动车销售统一发票)93
数电纸票发票(二手车销售统一发票)94
火车票20
区块链发票21
船票22
定额发票23
机打发票24
出租车发票25
客运汽车26
航空运输电子客票行程单27
过路费28
打车行程单31
货物清单33
财政电子票据34
海关缴款书35
通用电子发票36
完税证明37
医疗票据38
退票费报销凭证39
非税收入一般缴款书(电子)40
车辆通行费通用(电子)发票41
银行回单42

支持的文件格式

格式扩展名
PDF.pdf
OFD.ofd
图片.jpg, .jpeg, .png, .bmp

使用方法

识别发票

# 识别文件夹中的所有发票
python scripts/recognize_invoices.py /path/to/invoices

# 识别单张发票
python scripts/recognize_invoices.py /path/to/invoices/123.png

配置管理

# 设置翔云凭证
python scripts/recognize_invoices.py --config

# 查看当前配置
python scripts/recognize_invoices.py --list-config

获取 netocr_key 和 netocr_secret

  1. 登录翔云
  2. 在个人中心获得

详细 API 说明见 翔云 OCR API 参考

工作流程

发票文件 → OCR识别 → 返回结果
   ↓           ↓         ↓
 PDF/图片   混贴识别   JSON结构

注意事项

  1. 图片需清晰,建议长宽 > 500px
  2. 单个文件不超过 10MB
  3. 翔云 OCR 按次计费,注意费用控制
  4. 配置文件保存在技能目录下的 config.json

Comments

Loading comments...