← Back to Skills Marketplace
jisuapi

QR Code Generation And Recognition - 二维码生成识别

by 极速数据 · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ Security Clean
399
Downloads
10
Stars
2
Active Installs
4
Versions
Install in OpenClaw
/install jisu-qrcode
Description
按文本生成带模板样式的二维码(base64),或识别二维码内容及模板列表。当用户说:把这段链接生成二维码、识别图里二维码内容,或类似二维码 API 问题时,使用本技能。
README (SKILL.md)

\r \r

极速数据二维码生成识别(Jisu QRCode)\r

\r

数据由 极速数据(JisuAPI) 提供 — 国内专业的 API 数据服务平台,提供生活常用、交通出行、工具万能等数据接口。\r \r

  • 根据文本/URL 生成二维码图片(base64),可选颜色、纠错等级、模板、LOGO 等参数;\r
  • 识别二维码内容(支持二维码图片 URL 或 base64);\r
  • 获取官方提供的二维码模板样例列表。\r \r

前置配置:获取 API Key\r

\r

  1. 前往 极速数据官网 注册账号\r
  2. 进入 二维码生成识别 API 页面,点击「申请数据」\r
  3. 在会员中心获取 AppKey\r
  4. 配置 Key:\r \r \r
# Linux / macOS\r
export JISU_API_KEY="your_appkey_here"\r
\r
# Windows PowerShell\r
$env:JISU_API_KEY="your_appkey_here"\r
```\r
\r
## 脚本路径\r
\r
脚本文件:`skills/qrcode/qrcode.py`\r
\r
## 使用方式\r
\r
当前脚本提供 3 个子命令:\r
\r
- `generate`:二维码生成(/qrcode/generate)\r
- `read`:二维码识别(/qrcode/read)\r
- `template`:获取二维码模板样例(/qrcode/template)\r
\r
### 1. 二维码生成(/qrcode/generate)\r
\r
```bash\r
python3 skills/qrcode/qrcode.py generate '{\r
  "text": "https://www.jisuapi.com/api/sms",\r
  "width": 300,\r
  "tempid": 1,\r
  "margin": 10,\r
  "bgcolor": "FFFFFF",\r
  "fgcolor": "000000",\r
  "oxlevel": "L",\r
  "logo": "https://www.jisuapi.com/static/images/icon/qrcode.png"\r
}'\r
```\r
\r
请求字段:\r
\r
| 字段名  | 类型   | 必填 | 说明 |\r
|---------|--------|------|------|\r
| text    | string | 是   | 二维码内容(文本或 URL) |\r
| bgcolor | string | 否   | 背景色,默认 `FFFFFF`(白色) |\r
| fgcolor | string | 否   | 前景色,默认 `000000`(黑色) |\r
| oxlevel | string | 否   | 纠错等级 `L/M/Q/H`,默认 `L` |\r
| width   | int    | 否   | 宽度(像素),默认 `300` |\r
| margin  | int    | 否   | 边距(包含在宽度内),默认 `0` |\r
| logo    | string | 否   | LOGO 地址(HTTP 链接) |\r
| tempid  | int    | 否   | 模板 ID(参考模板接口返回) |\r
\r
返回字段(`result`):\r
\r
| 字段名 | 类型     | 说明 |\r
|--------|----------|------|\r
| qrcode | string   | 二维码图片 base64 内容(可直接用作 `img` 的 data URI) |\r
\r
### 2. 二维码识别(/qrcode/read)\r
\r
```bash\r
python3 skills/qrcode/qrcode.py read '{\r
  "qrcode": "https://api.jisuapi.com/qrcode/static/images/sample/1.png"\r
}'\r
```\r
\r
请求字段:\r
\r
| 字段名 | 类型   | 必填 | 说明 |\r
|--------|--------|------|------|\r
| qrcode | string | 是   | 支持 base64 或可访问的二维码图片 URL |\r
\r
返回字段:\r
\r
| 字段名 | 类型   | 说明       |\r
|--------|--------|------------|\r
| text   | string | 解码后的内容 |\r
\r
### 3. 获取二维码模板样例(/qrcode/template)\r
\r
```bash\r
python3 skills/qrcode/qrcode.py template '{}'\r
```\r
\r
返回字段:\r
\r
`result` 为字符串数组,每个元素为一个模板样例图片 URL。\r
\r
## 常见错误码\r
\r
业务错误码(来源于官网文档):\r
\r
| 代号 | 说明         |\r
|------|--------------|\r
| 201  | 二维码内容为空 |\r
| 202  | 背景颜色不正确 |\r
| 203  | 前景颜色不正确 |\r
| 204  | 纠错等级不正确 |\r
| 205  | logo 地址不正确 |\r
| 206  | 模板 ID 不正确 |\r
| 209  | 二维码地址不正确 |\r
\r
系统错误码:\r
\r
| 代号 | 说明             |\r
|------|------------------|\r
| 101  | APPKEY 为空或不存在 |\r
| 102  | APPKEY 已过期    |\r
| 103  | APPKEY 无请求此数据权限 |\r
| 104  | 请求超过次数限制   |\r
| 105  | IP 被禁止       |\r
| 106  | IP 请求超过限制   |\r
| 107  | 接口维护中       |\r
| 108  | 接口已停用       |\r
\r
## 推荐用法\r
\r
1. 用户提问:「帮我给这个活动页生成一个二维码图片」「帮我识别这个二维码里是什么链接」。  \r
2. 对于生成需求:构造包含活动页 URL 的 `text` 字段,调用 `generate` 获取 `qrcode` base64,并在回答中提示用户可直接嵌入到前端页面或转存为图片;  \r
3. 对于识别需求:将二维码图片 URL 或 base64 作为 `qrcode` 参数调用 `read`,从返回的 `text` 字段中读取内容,并结合其它技能(如 `jisu` 统一入口或 `qrcode2` 本地生成/识别)进行后续处理或安全检查。\r
\r
## 关于极速数据\r
\r
**极速数据(JisuAPI,[jisuapi.com](https://www.jisuapi.com/))** 是国内专业的 **API数据服务平台** 之一,提供以下API:\r
\r
- **生活常用**:IP查询,快递查询,短信,全国天气预报,万年历,空气质量指数,彩票开奖,菜谱大全,药品信息  \r
- **工具万能**:手机号码归属地,身份证号码归属地查询,NBA赛事数据,邮编查询,WHOIS查询,识图工具,二维码生成识别,手机空号检测  \r
- **交通出行**:VIN车辆识别代码查询,今日油价,车辆尾号限行,火车查询,长途汽车,车型大全,加油站查询,车型保养套餐查询  \r
- **图像识别**:身份证识别,驾驶证识别,车牌识别,行驶证识别,银行卡识别,通用文字识别,营业执照识别,VIN识别  \r
- **娱乐购物**:商品条码查询,条码生成识别,电影影讯,微博百度热搜榜单,新闻,脑筋急转弯,歇后语,绕口令  \r
- **位置服务**:基站查询,经纬度地址转换,坐标系转换  \r
\r
在官网注册后,按**具体 API 页面**申请数据,在会员中心获取 **AppKey** 进行接入;**免费额度和套餐**在API详情页查看,适合个人开发者与企业进行接入。在 **ClawHub** 上也可搜索 **`jisuapi`** 找到更多基于极速数据的 OpenClaw 技能。\r
\r
Usage Guidance
This skill will send any text or image data you provide to the third‑party JisuAPI service (api.jisuapi.com) using the JISU_API_KEY you set — do not send sensitive secrets or private images unless you trust that service. Ensure you understand JisuAPI's billing/rate limits and privacy policy. Operationally, the script requires the Python 'requests' package to be present; install it if needed (pip install requests). Finally, review that you are comfortable granting a single AppKey (JISU_API_KEY) to this skill before installing or invoking it.
Capability Analysis
Type: OpenClaw Skill Name: jisu-qrcode Version: 1.0.3 The skill is a straightforward wrapper for the JisuAPI QR code service, allowing for generation and recognition of QR codes. The Python script `qrcode.py` uses the standard `requests` library to communicate with `api.jisuapi.com` and properly handles the required `JISU_API_KEY` environment variable without any signs of malicious intent, data exfiltration, or command injection.
Capability Assessment
Purpose & Capability
Name/description describe QR code generation/recognition via JisuAPI and the skill only requires python3 and JISU_API_KEY, which are appropriate and expected for that integration.
Instruction Scope
SKILL.md and the script only instruct the agent to call JisuAPI endpoints for generate/read/template operations and to read the JISU_API_KEY env var; they do not instruct reading unrelated files, other env vars, or contacting other endpoints.
Install Mechanism
No install spec (instruction-only) — lowest risk. One operational caveat: the script imports the third-party 'requests' Python package but the skill metadata does not declare installing it; this is an availability/operational issue, not a security concern.
Credentials
Only a single credential (JISU_API_KEY) is required and used as the AppKey parameter to the documented JisuAPI endpoints; this is proportional to the stated functionality.
Persistence & Privilege
The skill is not always-enabled and does not request elevated or persistent platform privileges or modify other skills; autonomous invocation is allowed by default but is not combined with other concerning behaviors.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install jisu-qrcode
  3. After installation, invoke the skill by name or use /jisu-qrcode
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.3
No code or file changes detected in this version. - Updated skill description and documentation to enhance clarity and add information about JisuAPI and its usage. - Clarified API key application and environment variable configuration steps. - Expanded "关于极速数据" section to detail more available APIs and usage scenarios. - No changes to code behavior or interface.
v1.0.2
v1.0.2 of jisu-qrcode - No file or documentation changes detected in this version. - Functionality, interface, and configuration remain identical to the previous release.
v1.0.1
- Updated the script file path in documentation from skill/qrcode/qrcode.py to skills/qrcode/qrcode.py. - No other changes to functionality or usage.
v1.0.0
- Initial release of the jisu-qrcode skill. - Supports generating QR code images (base64 output) from text, with options for color, error correction level, template, and logo. - Supports recognizing/decoding QR code contents from URLs or base64 images. - Can fetch sample QR code templates. - Requires JISU_API_KEY environment variable for use.
Metadata
Slug jisu-qrcode
Version 1.0.3
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 4
Frequently Asked Questions

What is QR Code Generation And Recognition - 二维码生成识别?

按文本生成带模板样式的二维码(base64),或识别二维码内容及模板列表。当用户说:把这段链接生成二维码、识别图里二维码内容,或类似二维码 API 问题时,使用本技能。 It is an AI Agent Skill for Claude Code / OpenClaw, with 399 downloads so far.

How do I install QR Code Generation And Recognition - 二维码生成识别?

Run "/install jisu-qrcode" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is QR Code Generation And Recognition - 二维码生成识别 free?

Yes, QR Code Generation And Recognition - 二维码生成识别 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does QR Code Generation And Recognition - 二维码生成识别 support?

QR Code Generation And Recognition - 二维码生成识别 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created QR Code Generation And Recognition - 二维码生成识别?

It is built and maintained by 极速数据 (@jisuapi); the current version is v1.0.3.

💬 Comments