Xpersona
E

expense_invoice_ocr

CLAWHUB · Unverified

支持识别企业财务报销场景的19 种常见票据,包括:增值税发票,增值税卷票,出租车发票,火车票,航空运输电子客票行程单,机动车销售统一发票,定额发票,过路过桥费发票,医疗发票,税收完税证明,船票,非税票据,通用机打发票,汽车票,值税通行费发票,网约车行程单,银联POS签购单,医疗住院发票,医疗费用结算单识别。仅在用户明确要求识别某张本地票据图片时触发,调用前必须确认用户同意上传该文件到 Scnet 远程 OCR 服务。 Skill: expense_invoice_ocr Owner: scnet-sugon Summary: 支持识别企业财务报销场景的19 种常见票据,包括:增值税发票,增值税卷票,出租车发票,火车票,航空运输电子客票行程单,机动车销售统一发票,定额发票,过路过桥费发票,医疗发票,税收完税证明,船票,非税票据,通用机打发票,汽车票,值税通行费发票,网约车行程单,银联POS签购单,医疗住院发票,医疗费用结算单识别。仅在用户明确要求识别某张本地票据图片时触发,调用前必须确认用户同意上传该文件到 Scnet 远程 OCR 服务。 Tags: latest:1.0.8 Version history: v1.0.8 | 2026-08-11T09:38:04.815Z | user **Changelog for expense-invoice-ocr v1.0.8** - 增强数据安全:技能说明和描述明确警告,调用本技能会将本地票据

62
Rank
84
Safety
1.7k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.7K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17aan1jdk93c5398r3ypc523d83hqys:expense-invoice-ocr
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-scnet-sugon-expense-invoice-ocr/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

146,612 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: expense_invoice_ocr
description: 支持识别企业财务报销场景的19 种常见票据,包括:增值税发票,增值税卷票,出租车发票,火车票,航空运输电子客票行程单,机动车销售统一发票,定额发票,过路过桥费发票,医疗发票,税收完税证明,船票,非税票据,通用机打发票,汽车票,值税通行费发票,网约车行程单,银联POS签购单,医疗住院发票,医疗费用结算单识别。仅在用户明确要求识别某张本地票据图片时触发,调用前必须确认用户同意上传该文件到 Scnet 远程 OCR 服务。
version: 1.0.8
author: SCNet
license: MIT
tags:
  - OCR
  - 证件识别
  - 发票识别
  - 文字提取
required_env_vars:
  - SCNET_API_KEY
optional_env_vars:
  - SCNET_API_BASE
primary_credential: SCNET_API_KEY
dependencies:
  - python3
  - requests
permissions:
  - filesystem/read: 读取用户指定的本地图片/PDF 文件
  - network/outbound: 向 Scnet OCR API (api.scnet.cn) 上传文件并接收识别结果
input:
  - ocrType : 识别类型,可选值见下文
  - filePath : 待识别图片的本地路径
output: 结构化的 JSON 数据,包含识别结果和置信度
---
# Sugon-Scnet 通用 OCR 技能

> **⚠️ 数据安全警告**:本技能会将您指定的本地票据、发票、行程单、医疗单据等文件**完整上传**到第三方远程 OCR 服务 `https://api.scnet.cn`。这些文件可能包含个人身份信息(PII)、纳税人识别号、银行账号、金额、病史等敏感内容。请在每次调用前确认:
> 1. 该文件不包含受监管或机密信息;
> 2. 您或您所在的组织已授权将此类数据发送至 Scnet;
> 3. 您明确同意本次上传。
> 如不符合以上任一条件,请勿使用本技能。

本技能封装了 Sugon-Scnet 企业财务报销 OCR 服务,通过单一接口即可调用 19 种识别能力,高效提取文字及票据信息。

## 功能特性

- **财务票据**:覆盖增值税发票,增值税卷票,出租车发票,火车票,航空运输电子客票行程单,机动车销售统一发票,定额发票,过路过桥费发票,医疗发票,税收完税证明,船票,非税票据,通用机打发票,汽车票,值税通行费发票,网约车行程单,银联POS签购单,医疗住院发票,医疗费用结算单识别,自动提取关键字段。

## 前置配置

> **⚠️ 重要**:使用前需要申请 Scnet API Token

### 申请 API Token

1. 访问 [Scnet 官网](https://www.scnet.cn) 注册/登录
2. 在控制台申请 API 密钥(格式:`sc-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`)
3. 复制密钥备用

### 配置 Token

**手动配置(推荐)**
1. 在技能目录下创建 `config/.env` 文件,内容如下:
```ini
# =====  Sugon-Scnet OCR API 配置 =====
# 申请地址:https://www.scnet.cn
SCNET_API_KEY=your_scnet_api_key_here

# API 基础地址(一般无需修改)
SCNET_API_BASE=https://api.scnet.cn/api/llm/v1
```
2. 添加:`SCNET_API_KEY=你的密钥`
3. 设置文件权限为 600(仅所有者可读写)
**⚠️ 安全警告**:切勿将 API Key 直接粘贴到聊天对话中,否则可能被记录或泄露。

### Token 更新

Token 过期后调用会返回 401 或 403 错误。更新方法:重新申请 Token 并替换 config/.env 中的 SCNET_API_KEY。

### 依赖安装

本技能需要 Python 3.6+ 和 requests 库。请运行以下命令:

```bash
   pip install requests
```
---
### 使用方法

### 参数说明

| 参数名 | 类型 | 必填 | 描述 |
|--------|------|------|------|
| ocrType | string | 是 | 识别类型枚举。必须为以下之一:<br>• UNIFIED_IDENTIFICATION_OF_FINANC(财务票据统一识别)<br>• VAT_INVOICE(增值税发票)<br>• VAT_TOLL_INVOICE(增值税通行费发票)<br>• VAT_ROLL_INVOICE(增值税卷票)<br>• TAXI_INVOICE(出租车发票)<br>• TRAIN_TICKET(火车票)<br>• AIRPORT_TICKET(航空运输电子客票行程单)<br>• VEHICLE_SALE_INVOICE(机动车销售统一发票)<br>• QUOTA_INVOICE(定额发票)<br>• TOLL_INVOICE(过路过桥费发票)<br>• MEDICAL_INVOICE(医疗发票)<br>• MEDICAL_INPATIENT_INVOICE(医疗住院发票)<br>• MEDICAL_EXPENSE_SETTLEMENT(医疗费用结算单)<br>• TAX_CERTIFICATE(税收完税证明)<br>• NON_TAX_BILL(非税票据)<br>• GENERAL_MACHINE_INVOICE(通用机打发票)<br>• SHIP_TICKET(船票)<br>• BUS_TICKET(汽车票)<br>• RIDE_HAILING_ITINERARY(网约车行程单)<br>• UNIONPAY_POS_RECEIPT(银联POS签购单) |
| filePath | string | 是 | 待识别图片的本地绝对路径。支持 jpg、png、pdf 等常见格式。 |

### 命令行调用示例

```bash
   python .claude/skills/expense_invoice_ocr/scripts/main.py VAT_INVOICE /path/to/invoice.jpg
```

### 在 AI 对话中使用

为避免自动触发导致用户文件被意外上传,**不要**仅根据关键词自动调用本技能。AI 必须在满足以下全部条件后再执行:

1. 用户明确请求识别/提取某张*

README.md

# expense_invoice_ocr



## Getting started

To make it easy for you to get started with GitLab, here's a list of recommended next steps.

Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!

## Add your files

* [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
* [Add files using the command line](https://docs.gitlab.com/topics/git/add_files/#add-files-to-a-git-repository) or push an existing Git repository with the following command:

```
cd existing_repo
git remote add origin https://github.com/SCNet-sugon/expense_invoice_ocr.git
git branch -M main
git push -uf origin main
```

## Integrate with your tools

* [Set up project integrations](http://10.19.0.66:10068/sugon/sugon-scnet-ocr/-/settings/integrations)

## Collaborate with your team

* [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
* [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
* [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
* [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
* [Set auto-merge](https://docs.gitlab.com/user/project/merge_requests/auto_merge/)

## Test and Deploy

Use the built-in continuous integration in GitLab.

* [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/)
* [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
* [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
* [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
* [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)

***

# Editing this README

When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.

## Suggestions for a good README

Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.

## Name
Choose a self-explaining name for you

_meta.json

{
  "ownerId": "kn7ax58mnefnavcfwakqxpsgqn82tacy",
  "slug": "expense-invoice-ocr",
  "version": "1.0.8",
  "publishedAt": 1786441084815
}

references/api-docs.md

# Sugon-Scnet OCR API 文档摘要

> **⚠️ 数据安全警告**:调用本接口会将用户本地文件上传到第三方远程 OCR 服务 `https://api.scnet.cn`。发票、行程单、医疗单据等文件通常包含个人身份信息、纳税人识别号、银行账号、金额、病史等敏感数据。请确保用户已明确同意上传,且文件不包含其组织禁止外发的机密或受监管信息。

## 接口地址
`POST https://api.scnet.cn/api/llm/v1/ocr/recognize`

## 请求头
- `Content-Type: multipart/form-data`
- `Authorization: Bearer <你的 API Key>`

## 请求参数(表单)
| 参数名  | 类型 | 必填 | 描述                                   |
| ------- | ---- | ---- | -------------------------------------- |
| file    | File | 是   | 需要识别的图片文件(将完整上传至 Scnet 服务器) |
| ocrType | str  | 是   | 识别类型枚举,详见 SKILL.md 参数说明   |

## 响应结构
```json
{
    "code": "0",
    "msg": "success",
    "data":[ 
        {
            "traceId": "202604010000017",
            "originalFilename": "增值税发票示例.jpg",
            "cosPath": "/ocr/202604/01/增值税发票示例.jpg",
            "result": [
                {
                    "status": 200,
                    "originFilename": "增值税发票示例.jpg",
                    "cosPath": "/ocr/202604/01/增值税发票示例.jpg",
                    "fileIndex": 1,
                    "cutIndex": 0,
                    "coordinate": [],
                    "classifyCode": "VAT_INVOICE",
                    "confidence": 0.996,
                    "elements": {
                      "title": "厦门增值税专用发票",
                      "invoiceCode": "3502210221",
                      "invoiceNo": "04727777",
                      "printedCode": "3502210221",
                      "printedNo": "04727777",
                      "checkCode": "",
                      "machineCode": "499099900999",
                      "invoiceDate": "20220707",
                      "passwordArea": "03+6//8820/+688-+3>5<45-56>703+6//8820/+688-+3>5<45-56>703+6//8820/+688-+3>5<45-56>703+6//8820/+688-+3>5<45-56>7",
                      "buyerName": "中国思味银行股份有限公司厦门市分行",
                      "buyerCode": "913502008520082008",
                      "buyerAddressAndPhone": "厦门市思明区思明道05号05922105922",
                      "buyerBankAndAccount": "厦门分行营业部35350035003500013500",
                      "sellerName": "中国厦门厦门有限公司厦门分公司",
                      "sellerCode": "91350200720072007D",
                      "sellerAddressAndPhone": "厦门市思明路25号10000",
                      "sellerBankAndAccount": "思明厦门思明支行4100020009200020009",
                      "preTaxTotalAmount": "39622.64",
                      "totalTaxAmount": "2377.36",
                      "totalAmountUpper": "肆万贰仟圆整",
                      "totalAmountLower": "42000.00",
                      "invoiceForm": "第三联:发票联",
                      "remarks": "备注示例",
                      "payee": "张三",
                      "checker": "李四",
                      "drawer": "李明",
                      "goodsDetails": {
                        "goodsName": "*电信服务*增值电信服务",
                        "specification": "无",
                        "unit": "项",
                        "quantity": "1",
                       

assets/templates/fields-summary.md

# 各识别类型的字段说明(elements 内容)

根据 ocrType 不同,返回的 `elements` 对象包含以下字段:

## VAT_INVOICE (增值税发票)
- `title`: 发票名称
- `invoiceCode`: 发票代码
- `invoiceNo`: 发票号码
- `printedCode`: 机打代码
- `printedNo`: 机打号码
- `checkCode`: 校验码
- `machineCode`: 机器编号
- `invoiceDate`: 开票日期
- `passwordArea`: 密码区
- `buyerName`: 购方名称
- `buyerCode`: 购方纳税人识别号
- `buyerAddressAndPhone`: 购方地址及电话
- `buyerBankAndAccount`: 购方开户行及账号
- `sellerName`: 销售方名称
- `sellerCode`: 销售方纳税人识别号
- `sellerAddressAndPhone`: 销售方地址及电话
- `sellerBankAndAccount`: 销售方开户行及账号
- `preTaxTotalAmount`: 税前合计金额
- `totalTaxAmount`: 合计税额
- `totalAmountUpper`: 价税合计(大写)
- `totalAmountLower`: 价税合计(小写)
- `invoiceForm`: 联次
- `remarks`: 备注
- `payee`: 收款人
- `checker`: 复核
- `drawer`: 开票人
- `goodsDetails`: 发票商品明细
  - `goodsName`: 货物服务名称
  - `specification`: 规格
  - `unit`: 单位
  - `quantity`: 数量
  - `unitPrice`: 单价
  - `itemAmount`: 金额
  - `taxRate`: 税率
  - `taxAmount`: 税额

## VAT_ROLL_INVOICE (增值税卷票)
- `title`: 发票名称
- `invoiceCode`: 发票代码
- `invoiceNo`: 发票号码
- `printedNo`: 机打号码
- `machineCode`: 机器编号
- `invoiceDate`: 开票日期
- `payee`: 收款员
- `buyerName`: 购方名称
- `buyerCode`: 购方纳税人识别号
- `sellerName`: 销售方名称
- `sellerCode`: 销售方纳税人识别号
- `totalAmountUpper`: 价税合计(大写)
- `totalAmountLower`: 价税合计(小写)
- `checkCode`: 校验码
- `goodsDetails`: 发票商品明细
  - `goodsName`: 项目
  - `unitPrice`: 单价
  - `quantity`: 数量
  - `itemAmount`: 金额

## TAXI_INVOICE (出租车发票)
- `title`: 标题
- `invoiceCode`: 发票代码
- `invoiceNo`: 发票号码
- `vehicleNo`: 车号
- `certificateNo`: 证号
- `date`: 日期
- `boardingTime`: 上车时间
- `alightingTime`: 下车时间
- `amount`: 金额
- `actualAmount`: 实收金额

## TRAIN_TICKET (火车票)
- `title`: 标题
- `ticketNo`: 车票编号
- `departStation`: 起始站
- `destinationStation`: 终止站
- `trainNo`: 车次
- `departDate`: 发车日期
- `departTime`: 发车时间
- `seatPostion`: 座位号
- `seatNo`: 座次
- `ticketPrice`: 票价
- `passengerName`: 旅客姓名
- `identifyId`: 身份证号
- `invoiceNo`: 发票号码
- `invoiceDate`: 开票日期
- `preTaxAmount`: 税前金额
- `taxRate`: 税率
- `taxAmount`: 税额
- `elecTicketNo`: 电子客票号
- `originInvoiceNo`: 原发票号码
- `buyerName`: 购买方名称
- `socialCreditCode`: 统一社会信用代码
- `refundTag`: 退票标识
- `replaceTag`: 换开标识
- `otherInfo`: 其他信息

## AIRPORT_TICKET (航空运输电子客票行程单)
- `title`: 标题
- `domesticTag`: 国内国际标识
- `gpBillNo`: GP单号
- `issueStatus`: 开具状态
- `invoiceNo`: 发票号码
- `serialNumber`: 印刷序号
- `passengerName`: 旅客姓名
- `identifyIdNo`: 身份证号码
- `endorsement`: 签注
- `openMark`: OPEN标示
- `refundMark`: 退票费标示
- `ticketPrice`: 票价
- `fuleDischarge`: 燃油附加费
- `civilAviationFund`: 民航发展基金
- `taxRate`: 增值税税率
- `taxAmount`: 增值税税额
- `otherTaxes`: 其他税费
- `totalAmount`: 合计金额
- `ticketNo`: 电子客票号码
- `checkCode`: 验证码
- `reminderInfo`: 提示信息
- `insuranceCharge`: 保险费
- `salesOutletCode`: 销售网点代号
- `issueUnit`: 填开单位
- `issueDate`: 填开日期
- `buyerName`: 购买方名称
- `taxPayerCode`: 纳税人识别号
- `airTransportRoutes`: 行程信息
  - `departPlace`: 始发地
  - `destinationPlace`: 目的地
  - `carrier`: 承运人
  - `flightNo`: 航班号
  - `seatLevel`: 座位等级
  - `departDat

Sponsored

Ads related to expense_invoice_ocr and adjacent AI workflows.