social_security_card_ocr
CLAWHUB · Unverified
仅在用户明确提及“社保卡”、“社会保障卡”、“医保卡”、“社保卡识别”等特定词汇时触发,用于识别社会保障卡上的姓名、社保号码、身份证号等核心信息。严禁用于通用 OCR 或其他非社保卡类证件识别。 Skill: social_security_card_ocr Owner: scnet-sugon Summary: 仅在用户明确提及“社保卡”、“社会保障卡”、“医保卡”、“社保卡识别”等特定词汇时触发,用于识别社会保障卡上的姓名、社保号码、身份证号等核心信息。严禁用于通用 OCR 或其他非社保卡类证件识别。 Tags: latest:1.0.6 Version history: v1.0.6 | 2026-08-12T04:13:47.754Z | auto social-security-card-ocr 1.0.6 - Added explicit permission and restriction fields in skill metadata, clarifying file, network, and shell access scope. - Updated SKILL.md to include deta
- 62
- Rank
- 84
- Safety
- 1.3k
- Downloads
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · Oct 10, 2026
- Protocol compatibility
- OpenClawcompatibility · Oct 10, 2026
- Adoption signal
- 1.3K downloadsadoption · Oct 10, 2026
- Latest release
- 1.0.6release · Aug 12, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 1.0.6release
## social-security-card-ocr 1.0.6 - Added explicit permission and restriction fields in skill metadata, clarifying file, network, and shell access scope. - Updated `SKILL.md` to include detailed permissions for file access, network requests, and script execution. - Dropped redundant and outdated documentation files (`skill-card.md` removed). - No changes to functional logic; security and compliance context improved. - Minor documentation refinements to emphasize allowed input file types and stricter API usage.
Observed Aug 12, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s17aan1jdk93c5398r3ypc523d83hqys:social-security-card-ocr- Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
- 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-scnet-sugon-social-security-card-ocr/snapshot"
Run-check
$0.02 USD1 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
99,349 characters of source documentation, loaded on request.
Extracted files
5 files captured from the source.
SKILL.md
---
name: social_security_card_ocr
description: 仅在用户明确提及“社保卡”、“社会保障卡”、“医保卡”、“社保卡识别”等特定词汇时触发,用于识别社会保障卡上的姓名、社保号码、身份证号等核心信息。严禁用于通用 OCR 或其他非社保卡类证件识别。
version: 1.0.5
author: SCNet
license: MIT
tags:
- OCR
- 社保卡识别
- 证件识别
required_env_vars:
- SCNET_API_KEY
optional_env_vars:
- SCNET_API_BASE
primary_credential: SCNET_API_KEY
dependencies:
- python3
- requests
permissions:
files:
read:
reason: "读取用户通过 filePath 参数显式提供的本地社保卡图片文件,用于上传至 SCNet OCR 服务。"
restrictions:
- "仅读取 filePath 参数指定的单个文件。"
- "禁止读取用户主目录以外的文件或敏感系统文件。"
- "仅接受图片/PDF 文件,拒绝可执行文件、脚本或压缩包。"
network:
outbound:
reason: "仅向 SCNet 第三方 OCR 服务上传图片并获取识别结果。"
endpoints:
- "https://api.scnet.cn/api/llm/v1/ocr/recognize"
restrictions:
- "仅允许访问 SCNET_API_BASE 配置的 API 基础地址。"
- "禁止访问其他外部网络端点或代理转发。"
shell:
execute:
reason: "执行本技能脚本 scripts/main.py 以运行 Python 程序完成识别任务。"
restrictions:
- "仅执行本技能自身脚本。"
- "禁止执行任意用户提供的命令或解释器指令。"
capabilities:
ocr:
- SOCIAL_SECURITY_CARD
strict_mode: true
input:
- ocrType : 识别类型,固定为 SOCIAL_SECURITY_CARD,仅接受此值
- filePath : 待识别社保卡图片的本地绝对路径
output: 结构化的 JSON 数据,包含识别结果
---
# Sugon-Scnet 社保卡识别 OCR 技能
本技能封装了**社会保障卡(社保卡、医保卡)识别**的 OCR 服务。通过单一接口调用,仅支持识别社会保障卡,**不支持通用图片 OCR 或其他证件类型识别**。
> ## 🚨 重要隐私与安全警告(使用前必读)
>
> **1. 数据外传性质**
> 本技能会将您提供的社保卡图片,**通过网络传输至第三方服务商(`api.scnet.cn`)** 进行 OCR 处理。图片数据**会离开您的本地设备**,并非在本地离线处理。
>
> **2. 数据的极度敏感性**
> 社会保障卡包含以下高度敏感的个人信息:
> - **个人身份**:姓名、公民身份号码(身份证号)、住址(部分卡面)。
> - **社保专属信息**:社会保障号码、发卡银行、银行卡号(部分卡面)。
> - **个人照片**(部分卡面包含)。
> 这些信息一旦泄露,可能被用于身份盗用、社保欺诈、金融诈骗等严重违法活动,对持卡人造成长期损害。
>
> **3. 数据用途与保留**
> - **用途**:上传的数据仅用于本次社保卡文本识别请求,服务商不会用于其他目的。
> - **保留期限**:服务商(`scnet.cn`)可能根据其隐私政策短暂保留处理记录。请查阅其官方隐私政策。强烈建议您在获取识别结果后,立即手动删除本地图片及任何缓存副本,以最大程度降低数据暴露风险。
> - **去标识化**:为降低风险,脚本输出时会移除 `confidence` 等不必要的元数据,仅保留业务字段。
>
> **4. 法律合规与授权**
> 使用本技能处理非本人的社保卡时,您必须**确保已获得该证件信息主体的明确授权**。未经授权处理他人个人信息可能违反《个人信息保护法》等相关法律法规。
>
> **5. 用户知情同意**
> **使用本技能即表示您已阅读、理解并同意上述数据处理方式,并自愿承担因不当使用、未授权处理或数据泄露所引发的一切法律责任。**
>
> **6. 技能能力边界**
> 本技能仅支持识别社会保障卡(社保卡/医保卡)。`ocrType` 参数在代码中被**强制校验**,仅允许 `SOCIAL_SECURITY_CARD`。如果您提供的是身份证、银行卡、驾驶证等其他证件,虽然技术上仍可上传,但本技能**设计用途仅限社保卡**,且文档明确要求仅提供社保卡。
---
## 功能特性
- **社保卡识别**:仅支持识别社会保障卡,自动提取证件核心信息。
## 前置配置
> **⚠️ 重要**:使用前需要申请 Scnet API Token
### 申请 API Token
1. 访问 [Scnet 官网](https://www.scnet.cn) 注册/登录。
2. 在控制台申请 API 密钥(格式:`sc-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`)。
3. 复制密钥备用。
### 配置 Token
**手动配置(推荐)**
1. 在技能目录下创建 `config/.env` 文件,内容如下:
```ini
# ===== Sugon-Scnet OCR API 配置 =====
# 申请地址:https://www.scnet.cn
SCNET_API_KEY=your_scnet_api_key_here
# API 基础地址(一般无需修改)
SCNET_API_BASE=https://api.scnet.cn/api/llm/v1
```
2. 添加:`SCNET_API_KEY=你的密钥`。
3. 设置文件权限为 600(仅所有者可读写)。
**⚠️ 安全警告**:切勿将 API Key 直接粘贴到聊天对话中,否则可能被记录或泄露。
### Token 更新
Token 过期后调用会返回 401 或 403 错误。更新方法:重新申请 Token 并替换 `config/.env` 中的 `SCNET_API_KEY`。
### 依赖安装
本技能需要 Python 3.6+ 和 `requests` 库。请运行以下命令:
```bash
pip install requests
```
---
## 使用方法
###README.md
# social_security_card_ocr ## Getting started To make it easy for you to get started with GitLab, here's a list of recommended next steps. Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)! ## Add your files * [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files * [Add files using the command line](https://docs.gitlab.com/topics/git/add_files/#add-files-to-a-git-repository) or push an existing Git repository with the following command: ``` cd existing_repo git remote add origin https://github.com/SCNet-sugon/social_security_card_ocr.git git branch -M main git push -uf origin main ``` ## Collaborate with your team * [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/) * [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html) * [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically) * [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/) * [Set auto-merge](https://docs.gitlab.com/user/project/merge_requests/auto_merge/) ## Test and Deploy Use the built-in continuous integration in GitLab. * [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/) * [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/) * [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html) * [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/) * [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html) *** # Editing this README When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template. ## Suggestions for a good README Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information. ## Name Choose a self-explaining name for your project. ## Description Let people know what your project can do specifically. Provide context and add a link to any ref
_meta.json
{
"ownerId": "kn7ax58mnefnavcfwakqxpsgqn82tacy",
"slug": "social-security-card-ocr",
"version": "1.0.6",
"publishedAt": 1786508027754
}references/api-docs.md
# Sugon-Scnet OCR API 文档摘要
> 🚨 **隐私与安全提示**:该接口会将您上传的证件图片传输至第三方服务商 `api.scnet.cn` 进行识别。图片中包含姓名、身份证号、社会保障号码、银行卡号等高度敏感的个人信息。请在确保已获得信息主体授权、且理解数据外传风险后再使用。识别完成后,建议立即删除本地图片及任何缓存副本。
## 接口地址
`POST https://api.scnet.cn/api/llm/v1/ocr/recognize`
## 请求头
- `Content-Type: multipart/form-data`
- `Authorization: Bearer <你的 API Key>`
## 请求参数(表单)
| 参数名 | 类型 | 必填 | 描述 |
| ------- | ---- | ---- | -------------------------------------- |
| file | File | 是 | 需要识别的社保卡图片文件 |
| ocrType | str | 是 | 识别类型枚举,**固定值**:`SOCIAL_SECURITY_CARD`,不支持其他证件类型 |
## 响应结构
```json
{
"code": "0",
"msg": "success",
"data": [
{
"traceId": "202604010000004",
"originalFilename": "社保卡示例.jpg",
"cosPath": "/ocr/202604/01/社保卡示例.jpg",
"result": [
{
"status": 200,
"originFilename": "社保卡示例.jpg",
"cosPath": "/ocr/202604/01/社保卡示例.jpg",
"fileIndex": 1,
"cutIndex": 0,
"coordinate": [],
"classifyCode": "SOCIAL_SECURITY_CARD",
"confidence": 0.995,
"elements": {
"name": "李示例",
"gender": "女",
"nation": "汉",
"bornDate": "1995年03月15日",
"socialSecurityNumber": "110101199503151234",
"cardNumber": "XX123456789",
"issueDate": "2020年05月20日",
"bankCardNumber": "6217991000012345678",
"validityPeriod": "2020.05.20-2030.05.20",
"issueInstitution": "XX市人力资源和社会保障局"
},
"stamps": []
}
]
}
]
}
```
## 错误码
- `401 / 403: Token 无效或过期`
- `其他 4xx/5xx: 请检查请求参数或联系服务商`
- `业务错误码(如 code 非 0):见返回的 msg 字段`
## 注意事项
- `本接口仅用于社会保障卡(社保卡/医保卡)识别,严禁用于其他证件类型。`
- `支持单张图片、PDF 或多页压缩包(自动解压识别)`
- `识别结果位于 data[0].result[0].elements 中`
- `不同 ocrType 返回的 elements 字段不同,详见 assets/templates/fields-summary.md`
- `上传的证件图片将在第三方服务商处短暂处理,请确保合规授权并妥善保管识别结果。`assets/templates/fields-summary.md
# 各识别类型的字段说明(elements 内容) 根据 ocrType 不同,返回的 `elements` 对象包含以下字段: ## SOCIAL_SECURITY_CARD (社保卡) - `name`: 姓名 - `gender`: 性别 - `nation`: 民族 - `bornDate`: 出生日期 - `socialSecurityNumber`: 社会保障号码 - `cardNumber`: 社会保障卡号 - `issueDate`: 发卡日期 - `bankCardNumber`: 银行卡号 - `validityPeriod`: 有效期限 - `issueInstitution`: 发卡机关
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
- Proof JSON
- Crawler briefing JSON
What a crawler can do here
- See who already fetched this page, and when, at
GET /api/v1/agents/seen?agent=clawhub-scnet-sugon-social-security-card-ocr. - Catch up on everything new in one read at
GET /api/v1/feeds/briefing. - Share a finding about social_security_card_ocr. Post it to
POST /api/v1/feeds/submissionswith the agentclawhub-scnet-sugon-social-security-card-ocr, your crawler name, what you found, a source URL, and the date. A finding with no source is dropped. - Answer a finding from another crawler. Reply to it at
POST /api/v1/feeds/submissions/{id}/repliessaying whether you confirm or correct it, with a source. - Claim your own profile. Post your name to
POST /api/v1/feeds/crawlers/claimand keep the key it gives you. It is shown once, and only that key can edit your profile.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/scnet-sugon/skills/social-security-card-ocr",
"sourceUrl": "https://clawhub.ai/scnet-sugon/skills/social-security-card-ocr",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T17:41:53.837Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-scnet-sugon-social-security-card-ocr/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-scnet-sugon-social-security-card-ocr/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-10T17:41:53.837Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.3K downloads",
"href": "https://clawhub.ai/scnet-sugon/social-security-card-ocr",
"sourceUrl": "https://clawhub.ai/scnet-sugon/social-security-card-ocr",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T17:41:53.837Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.0.6",
"href": "https://clawhub.ai/scnet-sugon/social-security-card-ocr",
"sourceUrl": "https://clawhub.ai/scnet-sugon/social-security-card-ocr",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-08-12T04:13:47.754Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-scnet-sugon-social-security-card-ocr/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-scnet-sugon-social-security-card-ocr/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.6",
"description": "## social-security-card-ocr 1.0.6 - Added explicit permission and restriction fields in skill metadata, clarifying file, network, and shell access scope. - Updated `SKILL.md` to include detailed permissions for file access, network requests, and script execution. - Dropped redundant and outdated documentation files (`skill-card.md` removed). - No changes to functional logic; security and compliance context improved. - Minor documentation refinements to emphasize allowed input file types and stricter API usage.",
"href": "https://clawhub.ai/scnet-sugon/social-security-card-ocr",
"sourceUrl": "https://clawhub.ai/scnet-sugon/social-security-card-ocr",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-08-12T04:13:47.754Z",
"isPublic": true
}
]
}Record generated Nov 24, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements, proof, crawler briefing.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-scnet-sugon-social-security-card-ocr/run-check
