Xpersona
B

Barcode Generation And Recognition - 条码生成识别

CLAWHUB · Unverified

按类型与参数生成条形码图(base64),或识别条码图内容。当用户说:生成一个 Code128 条码图、识别这张条码里的数字,或类似条码生成/识别时,使用本技能。 Skill: Barcode Generation And Recognition - 条码生成识别 Owner: jisuapi Summary: 按类型与参数生成条形码图(base64),或识别条码图内容。当用户说:生成一个 Code128 条码图、识别这张条码里的数字,或类似条码生成/识别时,使用本技能。 Tags: latest:1.0.3 Version history: v1.0.3 | 2026-04-03T09:19:26.465Z | user Version 1.0.3 - Updated the skill name and description for clarity and improved user guidance. - Enhanced service provider information and instructions for obtaining and configuring the

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K 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:barcode2
  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-barcode2/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

16,621 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: "Barcode Inquiry - 商品条码查询"
description: 按类型与参数生成条形码图(base64),或识别条码图内容。当用户说:生成一个 Code128 条码图、识别这张条码里的数字,或类似条码生成/识别时,使用本技能。
metadata: { "openclaw": { "emoji": "🏷️", "requires": { "bins": ["python3"], "env": ["JISU_API_KEY"] }, "primaryEnv": "JISU_API_KEY" } }
---

## 极速数据条码生成识别(Jisu Barcode)

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

- 生成多种类型条形码(EAN13、EAN8、CODE11、CODE128、CODE39、CODE93、GS1128、I25、ISBN、MSI、UPCA、UPCE、CODEBAR 等),返回 base64 图片内容;
- 从条形码图片(URL 或 base64)中识别出条码类型与编号。

## 前置配置:获取 API Key

1. 前往 [极速数据官网](https://www.jisuapi.com/) 注册账号
2. 进入 [条码生成识别 API](https://www.jisuapi.com/api/barcode/) 页面,点击「申请数据」
3. 在会员中心获取 **AppKey**
4. 配置 Key:


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

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

## 脚本路径

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

## 使用方式

当前脚本提供 2 个子命令:

- `generate`:条码生成(/barcode/generate)
- `read`:条码识别(/barcode/read)

### 1. 条码生成(/barcode/generate)

```bash
python3 skills/barcode/barcode.py generate '{
  "type": "ean13",
  "barcode": "6901236341056",
  "fontsize": 12,
  "dpi": 72,
  "scale": 2,
  "height": 40
}'
```

请求字段:

| 字段名   | 类型   | 必填 | 说明 |
|----------|--------|------|------|
| type     | string | 是   | 条码类型,如 `ean13` 等 |
| barcode  | string | 是   | 条码号 |
| fontsize | string/int | 是 | 字号 |
| dpi      | string/int | 是 | DPI |
| scale    | string/int | 是 | 比例 |
| height   | string/int | 是 | 高度 |

返回字段(`result`):

| 字段名   | 类型   | 说明 |
|----------|--------|------|
| type     | string | 条码类型(如 EAN13 等) |
| fontsize | string | 字号 |
| dpi      | string | DPI |
| scale    | string | 比例 |
| height   | string | 高度 |
| barcode  | string | 条码图片 base64 内容 |

### 2. 条码识别(/barcode/read)

```bash
python3 skills/barcode/barcode.py read '{
  "barcode": "https://api.jisuapi.com/barcode/barcode/1471602033673149.png"
}'
```

请求字段:

| 字段名   | 类型   | 必填 | 说明 |
|----------|--------|------|------|
| barcode  | string | 是   | 支持 base64 或可访问的条码图片 URL,图片文件最大支持 500K |

返回字段:

`result` 为数组,每个元素包含:

| 字段名 | 类型   | 说明   |
|--------|--------|--------|
| type   | string | 条码类型 |
| number | string | 条码内容 |

## 常见错误码

业务错误码(来源于官网文档):

| 代号 | 说明         |
|------|--------------|
| 201  | 条码类型不正确 |
| 202  | 条码号为空     |
| 203  | 条码不正确     |
| 206  | 条码地址不正确 |
| 210  | 没有信息       |

系统错误码:

| 代号 | 说明             |
|------|------------------|
| 101  | APPKEY 为空或不存在 |
| 102  | APPKEY 已过期    |
| 103  | APPKEY 无请求此数据权限 |
| 104  | 请求超过次数限制   |
| 105  | IP 被禁止       |
| 106  | IP 请求超过限制   |
| 107  | 接口维护中       |
| 108  | 接口已停用       |

## 推荐用法

1. 用户提问:「帮我生成一个 EAN13 条形码图片」「帮我识别这个条形码里的编号」。  
2. 对于生成需求:根据用户提供的条码号与类型构造 `generate` 请求,从返回的 `barcode` 字段中获取 base64 图片内容,供前端直接展示或保存为 PNG;  
3. 对于识别需求:将条码图片 URL 或 base64 作为 `barcode` 参数调用 `read`,遍历返回数组,读取每条记录的 `type/number` 回答给用户。

## 关于极速数据

**极速数据(JisuAPI,[jisuapi.c

_meta.json

{
  "ownerId": "kn7ex9mabfb47dvpgkmeypwqj9825yyz",
  "slug": "barcode2",
  "version": "1.0.3",
  "publishedAt": 1775207966465
}

skill-card.md

## Description:

Generates barcode images as base64 content by type and parameters, or recognizes barcode content from an image URL or base64 image.

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 generate EAN, Code128, Code39, UPC, ISBN, and other barcode images, or to read barcode type and number from submitted barcode images through JisuAPI.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Barcode image content and API key values are sent to a third-party API provider.

Mitigation: Use a restricted and revocable JISU_API_KEY, and avoid submitting sensitive barcode images or private/internal image URLs.

Risk: API keys and barcode data are sent in request query parameters where provider or proxy logs may retain them.

Mitigation: Route only acceptable data through the skill and rotate the API key if exposure is suspected.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/jisuapi/skills/barcode2)
- [JisuAPI Barcode Generation and Recognition API](https://www.jisuapi.com/api/barcode/)
- [JisuAPI](https://www.jisuapi.com/)

## Skill Output:

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

**Output Format:** [Markdown guidance with JSON examples and shell commands; runtime script output is JSON.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires python3 and a JISU_API_KEY environment variable.]

## Skill Version(s):

1.0.3 (source: server release metadata)

## 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 Barcode Generation And Recognition - 条码生成识别 and adjacent AI workflows.