Xpersona
B

Bank Card Recognition OCR - 银行卡识别

CLAWHUB · Unverified

对银行卡图片 OCR,返回卡号、银行与卡类型等。当用户说:银行卡卡号从照片里读出来、识别这张卡哪家银行,或类似银行卡 OCR 时,使用本技能。 Skill: Bank Card Recognition OCR - 银行卡识别 Owner: jisuapi Summary: 对银行卡图片 OCR,返回卡号、银行与卡类型等。当用户说:银行卡卡号从照片里读出来、识别这张卡哪家银行,或类似银行卡 OCR 时,使用本技能。 Tags: latest:1.0.4 Version history: v1.0.4 | 2026-04-03T09:59:06.639Z | user Version 1.0.4 - Updated skill name and description for improved clarity and trigger matching. - Enhanced introduction, attribution, and API provider details in documentation. - Added an "About JisuAPI" sect

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/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 s174fh1b14sn7vkvbqwsdn0xtd83gz5h:bankcardcognition
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  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-jisuapi-bankcardcognition/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

20,031 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: "Bank Card Recognition OCR - 银行卡识别"
description: 对银行卡图片 OCR,返回卡号、银行与卡类型等。当用户说:银行卡卡号从照片里读出来、识别这张卡哪家银行,或类似银行卡 OCR 时,使用本技能。
metadata: { "openclaw": { "emoji": "💳", "requires": { "bins": ["python3"], "env": ["JISU_API_KEY"] }, "primaryEnv": "JISU_API_KEY" } }
---

## 极速数据银行卡识别(Jisu BankCardCognition)

> 数据由 **[极速数据(JisuAPI)](https://www.jisuapi.com/)** 提供 — 国内专业的 API 数据服务平台,提供生活常用、交通出行、工具万能等数据接口。

- `number`:银行卡号
- `type`:银行卡类型(借记卡/信用卡等)
- `bankname`:银行名称
- `bankno`:银行编号

使用前需要在极速数据官网申请服务,文档见:[https://www.jisuapi.com/api/bankcardcognition/](https://www.jisuapi.com/api/bankcardcognition/)


```bash
# Linux / macOS
export JISU_API_KEY="your_appkey_here"

# Windows PowerShell
$env:JISU_API_KEY="your_appkey_here"
```

## 脚本路径

脚本文件:`skills/bankcardcognition/bankcardcognition.py`

## 使用方式与请求参数

当前脚本封装了 `/bankcardcognition/recognize` 接口,统一通过一段 JSON 调用。

### 1. 从本地图片识别银行卡(推荐)

```bash
python3 skills/bankcardcognition/bankcardcognition.py '{"path":"bankcard.jpg"}'
```

- `path`:本地银行卡图片路径(脚本会读取并转为 base64),建议使用较清晰的 JPG/PNG,大小不超过 500K。

### 2. 直接传 base64 图片内容

如果前置流程已经将图片转为 base64,可以直接传 `pic` 字段:

```bash
python3 skills/bankcardcognition/bankcardcognition.py '{
  "pic": "<base64_string>"
}'
```

> 注意:`pic` 只需要纯 base64 内容,不要带 `data:image/...;base64,` 前缀。

### 3. 请求参数说明

| 字段名 | 类型   | 必填 | 说明 |
|--------|--------|------|------|
| path   | string | 二选一 | 本地图片路径,脚本会自动读取并转为 base64 |
| image  | string | 二选一 | `path` 的别名 |
| file   | string | 二选一 | `path` 的别名 |
| pic    | string | 二选一 | 已是 base64 的图片内容(不带前缀) |

`path/image/file` 与 `pic` 至少提供一个,同时存在时优先使用 `pic`。

## 返回结果说明

原始接口返回结构示例(参考官网文档):

```json
{
  "status": 0,
  "msg": "ok",
  "result": {
    "number": "9559980210010631815",
    "type": "借记卡",
    "bankname": "农业银行",
    "bankno": "01030000"
  }
}
```

本技能会直接输出 `result` 对象,例如:

```json
{
  "number": "9559980210010631815",
  "type": "借记卡",
  "bankname": "农业银行",
  "bankno": "01030000"
}
```

当出现业务错误(如图片为空、格式错误、大小超限等)时,统一包装为:

```json
{
  "error": "api_error",
  "code": 201,
  "message": "图片为空"
}
```

网络或解析错误则返回:

```json
{
  "error": "request_failed" | "http_error" | "invalid_json",
  "message": "...",
  "status_code": 500
}
```

## 常见错误码

来源于 [银行卡识别文档](https://www.jisuapi.com/api/bankcardcognition/):

| 代号 | 说明               |
|------|--------------------|
| 201  | 图片为空           |
| 202  | 图片格式错误       |
| 204  | 图片大小超过限制   |
| 208  | 识别失败           |
| 210  | 没有信息           |

系统错误码 101–108 与其它极速数据接口一致。

## 推荐用法

1. 用户上传一张银行卡照片,希望确认卡号、银行名称或卡类型。  
2. 代理将图片保存为本地文件或转为 base64,调用:`python3 skills/bankcardcognition/bankcardcognition.py '{"path":"bankcard.jpg"}'`。  
3. 从返回结果中读取 `number/type/bankname/bankno` 字段,用自然语言总结,并根据场景提醒注意隐私和安全,仅在安全环境下展示或存储卡号信息。

## 关于极速数据

**极速数据(JisuAPI,[jisuapi.com](https://www.jisuapi.com/))** 是国内专业的 **API数据服务平台** 之一,提供以下API:

- **生活常用**:IP查询,快递查询,短信,全国天气预报,万年历,空气质量指数,彩票开奖,菜谱大全,药品信息  
- **工具万能**

_meta.json

{
  "ownerId": "kn7ex9mabfb47dvpgkmeypwqj9825yyz",
  "slug": "bankcardcognition",
  "version": "1.0.4",
  "publishedAt": 1775210346639
}

skill-card.md

## Description:

Recognizes bank-card images with OCR and returns the card number, bank name, card type, and bank identifier.

This skill is ready for commercial/non-commercial use.

## Publisher:

[jisuapi](https://clawhub.ai/user/jisuapi)

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to process authorized bank-card images and obtain OCR fields such as card number, bank name, card type, and bank code. It is suited for workflows where an agent can safely send the image to JisuAPI and handle the returned card data with appropriate privacy controls.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Sensitive bank-card images and OCR results are sent to a third-party API.

Mitigation: Use only for cards the operator is authorized to process, review JisuAPI privacy and retention terms, and avoid storing full card numbers unless necessary.

Risk: Path handling could upload an unintended local file.

Mitigation: Run the skill from a narrow working folder containing only the intended image, avoid symlinks, and review the selected file path before execution.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/jisuapi/skills/bankcardcognition)
- [JisuAPI bank card recognition API documentation](https://www.jisuapi.com/api/bankcardcognition/)
- [JisuAPI provider website](https://www.jisuapi.com/)

## Skill Output:

**Output Type(s):** [text, JSON, shell commands, configuration, guidance]

**Output Format:** [JSON object containing recognized bank-card fields or structured error details, with natural-language guidance when used by an agent.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires python3 and JISU_API_KEY; accepts a local relative image path or raw base64 image content.]

## Skill Version(s):

1.0.4 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Bank Card Recognition OCR - 银行卡识别 and adjacent AI workflows.