← 返回 Skills 市场
Enterprise Qualification Ocr
作者
SCNet-sugon
· GitHub ↗
· v1.0.4
· MIT-0
156
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install enterprise-qualification-ocr
功能描述
将图片中的文字、营业执照、社会团体法人登记证书、工会法人资格证书、宗教活动场所登记证、民办非企业单位登记证书、事业单位法人证书、统一社会信用代码证书等信息识别并提取出来。本技能应在用户需要 OCR 识别图片中的文字,或识别营业执照、社会团体法人登记证书、工会法人资格证书、宗教活动场所登记证、民办非企业单位登记证书...
使用说明 (SKILL.md)
\r
Sugon-Scnet 企业资质证书 OCR 技能\r
\r 本技能封装了 Sugon-Scnet 企业资质证书 OCR 服务,通过单一接口即可调用 7 种识别能力,高效提取文字及票据信息。\r \r
功能特性\r
\r
- 行业资质:营业执照、社会团体法人登记证书、工会法人资格证书、宗教活动场所登记证、民办非企业单位登记证书、事业单位法人证书、统一社会信用代码证书。\r \r
前置配置\r
\r
⚠️ 重要:使用前需要申请 Scnet API Token\r \r
申请 API Token\r
\r
- 访问 Scnet 官网 注册/登录\r
- 在控制台申请 API 密钥(格式:
sc-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)\r - 复制密钥备用\r \r
配置 Token\r
\r 手动配置(推荐)\r
- 在技能目录下创建
config/.env文件,内容如下:\r
# ===== Sugon-Scnet OCR API 配置 =====\r
# 申请地址:https://www.scnet.cn\r
SCNET_API_KEY=your_scnet_api_key_here\r
\r
# API 基础地址(一般无需修改)\r
SCNET_API_BASE=https://api.scnet.cn/api/llm/v1\r
```\r
2. 添加:`SCNET_API_KEY=你的密钥`\r
3. 设置文件权限为 600(仅所有者可读写)\r
**⚠️ 安全警告**:切勿将 API Key 直接粘贴到聊天对话中,否则可能被记录或泄露。\r
\r
### Token 更新\r
\r
Token 过期后调用会返回 401 或 403 错误。更新方法:重新申请 Token 并替换 config/.env 中的 SCNET_API_KEY。\r
\r
### 依赖安装\r
\r
本技能需要 Python 3.6+ 和 requests 库。请运行以下命令:\r
\r
```bash\r
pip install requests\r
```\r
---\r
### 使用方法\r
\r
### 参数说明\r
\r
| 参数名 | 类型 | 必填 | 描述 |\r
|--------|------|------|------|\r
| ocrType | string | 是 | 识别类型枚举。必须为以下之一:\x3Cbr>• BUSINESS_LICENSE(营业执照)\x3Cbr>• SOCIAL_ORG_REG (社会团体法人登记证书)\x3Cbr>• TRADE_UNION_REG (工会法人资格证书)\x3Cbr>• RELIGIOUS_ACTIVITY_REG(宗教活动场所登记证)\x3Cbr>• PRIVATE_NON_ENTERPRISE_REG(民办非企业单位登记证书)\x3Cbr>• INSTITUTION_LEGAL_REG(事业单位法人证书)\x3Cbr>• UNIFIED_SOCIAL_CREDIT_REG(统一社会信用代码证书) |\r
| filePath | string | 是 | 待识别图片的本地绝对路径。支持 jpg、png、pdf 等常见格式。 |\r
\r
### 命令行调用示例\r
\r
```bash\r
python .claude/skills/enterprise_qualification_ocr/scripts/main.py BUSINESS_LICENSE /path/to/invoice.jpg\r
```\r
\r
### 在 AI 对话中使用\r
\r
用户可以说:\r
\r
- “提取这张发票的信息,路径是 /Users/name/Downloads/fapiao.png”\r
\r
\r
AI 会根据 description 中的关键词自动触发本技能。\r
\r
### AI 调用建议\r
为避免触发 API 速率限制(10 QPS),请串行调用本技能,即等待前一个识别完成后再发起下一个请求。\r
如果使用 OpenClaw 的 exec 工具,建议设置 timeout 或 yieldMs 参数,让命令同步执行,避免多个命令同时运行导致并发。\r
\r
### 配置选项\r
\r
编辑 `config/.env` 文件:\r
\r
| 变量名 | 默认值 | 说明 |\r
|--------|--------|------|\r
| SCNET_API_KEY | 必需 | Scnet API 密钥 |\r
| SCNET_API_BASE | https://api.scnet.cn/api/llm/v1 | API 基础地址(一般无需修改) |\r
\r
### 输出\r
\r
- 标准输出:识别结果的 JSON 数据,结构与 API 文档一致,位于 `data` 字段内。\r
- 识别结果位于 data[0].result[0].elements 中,具体字段取决于 ocrType。\r
- 错误信息:如果发生错误,会输出以 `错误:` 开头的友好提示。\r
\r
### 注意事项\r
\r
- 本技能调用的 OCR API 有 10 QPS 的速率限制。\r
- 如果遇到 429 错误,请等待 2-3 秒后重试,不要连续发起请求。\r
- 建议在调用前确保图片已准备就绪,避免因网络问题导致重复调用。\r
\r
### 故障排除\r
\r
| 问题 | 解决方案 |\r
|------|----------|\r
| 配置文件不存在 | 创建 config/.env 并填入 Token(参考前置配置) |\r
| API Key 无效/过期 | 重新申请 Token 并更新 `.env` 文件 |\r
| 文件不存在 | 检查提供的文件路径是否正确 |\r
| 网络连接失败 | 检查网络连接或防火墙设置 |\r
| 不支持的文件类型 | 确保文件扩展名为允许的类型(参考 API 文档) |\r
| 401/403/Unauthorized | Token 无效或过期,重新申请并配置 |\r
| 429 Too Many Requests | 请求过于频繁,技能会自动等待并重试(最多 3 次)。若持续失败,请降低调用频率或联系服务方提高限额。 |\r
\r
\r
安全使用建议
This package appears to do only what it claims: upload a local image to https://api.scnet.cn/api/llm/v1/ocr/recognize using a SCNET_API_KEY. Before installing, do the following: (1) Verify you trust the Scnet service and its privacy policy (you will send document images to that endpoint). (2) Create the config/.env file with SCNET_API_KEY and set file permissions (600) as instructed — do NOT paste your API key into chats. (3) Note the minor inconsistencies: the skill registry metadata doesn't declare the required env var and the README mentions environment-variable configuration while the loader reads config/.env; confirm which method you prefer and, if you rely on environment variables, consider modifying the script to read them. (4) Review network policies and rate limits (10 QPS) if you will process many images. If you need stronger guarantees about data handling, ask the maintainer for a privacy/data-retention statement or run OCR locally with an alternative tool.
能力标签
能力评估
Purpose & Capability
The skill's name/description (enterprise OCR for business/qualification documents) matches its code and instructions: it reads a local image and posts it to the Scnet OCR endpoint. The single external service (api.scnet.cn) and a single API key are appropriate for the stated purpose. One mismatch: the registry metadata lists no required environment variables, but the SKILL.md and code require/configure a SCNET_API_KEY (via config/.env).
Instruction Scope
SKILL.md and scripts/main.py limit actions to reading a local file path, reading config/.env, and POSTing the file to the Scnet OCR API. The docs suggest an environment-variable option for SCNET_API_KEY, but the implemented loader only reads config/.env (the script's error messages mention export as an alternative). The skill outputs JSON to stdout and does not reference other system files or external endpoints beyond the Scnet API.
Install Mechanism
No install spec is provided (instruction-only plus a Python script). Dependencies are minimal (Python 3 and requests). No downloaded code from arbitrary URLs, no archives extracted, and no system-level installers are invoked.
Credentials
The skill legitimately requires one API credential (SCNET_API_KEY) for the Scnet service — this is proportionate. However, the skill metadata did not declare required env vars while SKILL.md and the script clearly require SCNET_API_KEY in config/.env; this mismatch should be corrected or verified before installation.
Persistence & Privilege
The skill does not request permanent presence (always is false), does not modify other skills or system-wide settings, and does not write files except optionally reading a config file in its own config/.env path. No elevated or persistent privileges are requested.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install enterprise-qualification-ocr - 安装完成后,直接呼叫该 Skill 的名称或使用
/enterprise-qualification-ocr触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.4
- Version bump from 1.0.3 to 1.0.4.
- No changes detected in skill files.
- Functionality and usage remain the same as the previous version.
v1.0.3
- Added skill.yaml file for standardized skill metadata.
- Updated version to 1.0.3.
- Clarified required/optional environment variables and listed dependencies (python3, requests) in documentation.
- Improved configuration instructions, with emphasis on manual setup and security warnings.
- Simplified usage examples and removed AI auto-configuration method.
- Enhanced documentation formatting for clarity and user guidance.
v1.0.1
- No changes detected in this version.
- Version number remains unchanged (1.0.0).
- No file or documentation updates present.
v0.1.0
Initial release of enterprise_qualification_ocr skill.
- Supports OCR extraction for seven types of enterprise qualification certificates (including business license, organization certificates, and social credit code).
- Returns structured JSON output with recognition results and confidence scores.
- Requires Scnet API Token for use; configuration options provided.
- Handles image formats such as JPG, PNG, and PDF.
- Includes rate limiting guidance, error handling, and troubleshooting tips.
元数据
常见问题
Enterprise Qualification Ocr 是什么?
将图片中的文字、营业执照、社会团体法人登记证书、工会法人资格证书、宗教活动场所登记证、民办非企业单位登记证书、事业单位法人证书、统一社会信用代码证书等信息识别并提取出来。本技能应在用户需要 OCR 识别图片中的文字,或识别营业执照、社会团体法人登记证书、工会法人资格证书、宗教活动场所登记证、民办非企业单位登记证书... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 156 次。
如何安装 Enterprise Qualification Ocr?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install enterprise-qualification-ocr」即可一键安装,无需额外配置。
Enterprise Qualification Ocr 是免费的吗?
是的,Enterprise Qualification Ocr 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Enterprise Qualification Ocr 支持哪些平台?
Enterprise Qualification Ocr 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Enterprise Qualification Ocr?
由 SCNet-sugon(@scnet-sugon)开发并维护,当前版本 v1.0.4。
推荐 Skills