jisu-barcode

使用极速数据条码生成识别 API,可按指定类型与参数生成条形码图片(base64),或识别条形码图片中的编码内容。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "jisu-barcode" with this command: npx skills add jisuapi/barcode2

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

基于 条码生成识别 API 的 OpenClaw 技能,支持:

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

使用技能前需要申请数据,申请地址:https://www.jisuapi.com/api/barcode/

环境变量配置

# 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)

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

请求字段:

字段名类型必填说明
typestring条码类型,如 ean13
barcodestring条码号
fontsizestring/int字号
dpistring/intDPI
scalestring/int比例
heightstring/int高度

返回字段(result):

字段名类型说明
typestring条码类型(如 EAN13 等)
fontsizestring字号
dpistringDPI
scalestring比例
heightstring高度
barcodestring条码图片 base64 内容

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

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

请求字段:

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

返回字段:

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

字段名类型说明
typestring条码类型
numberstring条码内容

常见错误码

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

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

系统错误码:

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

在 OpenClaw 中的推荐用法

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Joke Api

Access diverse jokes by category, language, and type with filters for safe content using the free JokeAPI without requiring registration or an API key.

Registry SourceRecently Updated
General

Stripe Manager

Error: --action required. Use when you need stripe manager capabilities. Triggers on: stripe manager, key, customer-id, amount, currency, desc.

Registry SourceRecently Updated
General

Doc Summarize Pro

Enhanced document summarizer. Smart summary, bullet extraction, executive summary, chapter breakdown, multi-doc comparison, translate+summarize, action item...

Registry SourceRecently Updated
General

GI API Design FastAPI

Design and implement RESTful API endpoints following FastAPI best practices. Use when creating new API routes, designing request/response schemas, or when th...

Registry SourceRecently Updated