Xpersona
B

birth_medical_cert_ocr

CLAWHUB · Unverified

仅在用户明确提及“出生医学证明”、“出生证明”、“医学出生证明”、“新生儿证明”等特定词汇时触发,用于识别出生医学证明上的核心信息(新生儿姓名、出生日期、父母信息、证件号码等)。严禁用于通用 OCR 或其他非出生医学证明类证件识别。 Skill: birth_medical_cert_ocr Owner: scnet-sugon Summary: 仅在用户明确提及“出生医学证明”、“出生证明”、“医学出生证明”、“新生儿证明”等特定词汇时触发,用于识别出生医学证明上的核心信息(新生儿姓名、出生日期、父母信息、证件号码等)。严禁用于通用 OCR 或其他非出生医学证明类证件识别。 Tags: latest:1.0.5 Version history: v1.0.5 | 2026-08-12T03:26:46.438Z | user - 增加 SKILL.md 中 permissions 字段,明确技能所需文件读取、网络访问和脚本执行权限。 - input 参数、description 和文档进一步限制仅支持 BIRTH_CERTIFICATE 类型,强调不得用于其他 OCR 识别。 - 强化安全合规与数据用途说明,新增“使用限制”和“仅限出生医学证明”警告。 -

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

Install and run

Setup complexity: low.

clawhub skill install s17aan1jdk93c5398r3ypc523d83hqys:birth-medical-cert-ocr
  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-scnet-sugon-birth-medical-cert-ocr/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

86,251 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: birth_medical_cert_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:
  read_local_files:
    paths:
      - "${SKILL_ROOT}/config/.env"
      - "${USER_PROVIDED_FILE_PATH}"
    reason: 读取用户提供的出生医学证明图片文件及本地配置文件。
  network:
    endpoints:
      - "https://api.scnet.cn/api/llm/v1/ocr/recognize"
    reason: 将出生医学证明图片上传至 Scnet OCR 服务进行识别处理。
  execute_script:
    command: "python3 ${SKILL_ROOT}/scripts/main.py BIRTH_CERTIFICATE <filePath>"
    reason: 执行本地 Python 脚本完成出生医学证明 OCR 识别调用。
input:
  - ocrType: 识别类型,仅允许 BIRTH_CERTIFICATE(出生医学证明)
  - filePath: 待识别出生医学证明图片的本地绝对路径
output: 结构化的 JSON 数据,包含识别结果
---

# Sugon-Scnet 出生医学证明识别 OCR 技能

本技能封装了出生医学证明识别的 OCR 服务,通过单一接口即可调用 1 种识别能力,高效提取出生医学证明核心信息。

> ## 🚨 重要隐私与安全警告(使用前必读)
>
> **1. 数据外传性质**
> 本技能会将您提供的出生医学证明图片,**通过网络传输至第三方服务商(`api.scnet.cn`)** 进行 OCR 处理。图片数据**会离开您的本地设备**,并非在本地离线处理。
>
> **2. 数据的极高敏感性**
> 出生医学证明包含以下极度敏感的个人及医疗信息:
> - **新生儿信息**:姓名、性别、出生日期、出生地点、出生体重/身长。
> - **父母信息**:姓名、身份证号码、民族、住址。
> - **医疗信息**:接生机构、接生人员、出生证编号。
>   这些信息一旦泄露,可能被用于身份冒用、非法落户、伪造证明等违法活动,对新生儿及其家庭造成长期影响。
>
> **3. 数据用途与保留**
> - **用途**:上传的数据仅用于本次文本识别请求,服务商不会用于其他目的。
> - **保留期限**:请查阅服务商(`scnet.cn`)官方隐私政策。**强烈建议您在获取识别结果后,立即手动删除本地图片及任何缓存副本**,以最大程度降低数据暴露风险。
>
> **4. 法律合规与授权**
> 使用本技能处理非本人或其子女的出生医学证明时,您必须**确保已获得该信息主体(或其法定监护人)的明确授权**。未经授权处理他人个人信息可能违反《个人信息保护法》等相关法律法规。
>
> **5. 使用限制**
> 本技能**仅用于识别出生医学证明**,不得用于通用 OCR、其他证件识别或任何非出生医学证明类文档处理。
>
> **6. 用户知情同意**
> **使用本技能即表示您已阅读、理解并同意上述数据处理方式,并自愿承担因不当使用、未授权处理或数据泄露所引发的一切法律责任。**

---

## 功能特性

- **出生医学证明证件识别**:支持识别出生医学证明证件核心信息。

## 前置配置

> **⚠️ 重要**:使用前需要申请 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
```

---

## 使用方法

### 参数说明

| 参数名 | 类型 | 必填 | 描述 |
|--------|------|------|------|
| ocrType | string | 是 | 识别类型枚举。**仅允许**:`BIRTH_CERTIFICATE`(出生医学证明) |
| filePath | string | 是 | 待识别出生医学证明图片的本地绝对路径。支持 jpg、png 等常见格式。 |

### 命令行调用示例

```bash
python .claude/skills/birth_medical_cert_ocr/scripts/main.py BIRTH_CERTIFICATE /path/to/birth_certificate.jpg
```

### 在 AI 对话中使用

用户可以说:

- “请识别这张出生医学证明上的新生儿姓名和父母信息,图片在 /Desktop/birth.jpg”
- “帮我提取这张出生证明的编号和出生日期,路径是……”

AI 会根据 descripti

README.md

# birth_medical_cert_ocr

> **⚠️ 隐私、安全与合规警告**
>
> 本技能用于**出生医学证明**的光学字符识别(OCR)。出生医学证明包含新生儿姓名、性别、出生日期、出生地点、出生体重/身长,以及父母姓名、身份证号码、民族、住址、接生机构、接生人员、出生证编号等极度敏感的个人及医疗信息。
>
> - **数据外传**:本技能会将您提供的图片**通过网络传输至第三方服务商 `api.scnet.cn`** 进行识别,图片数据会离开您的本地设备。
> - **用户授权**:使用本技能处理非本人或其子女的出生医学证明时,必须事先获得信息主体(或其法定监护人)的明确授权。
> - **数据保留**:上传数据仅用于本次识别请求,服务商保留策略请参考 [scnet.cn](https://www.scnet.cn) 官方隐私政策。强烈建议在获取识别结果后立即删除本地图片及任何缓存副本。
> - **使用限制**:本技能**仅支持出生医学证明**,禁止作为通用 OCR 或识别其他证件使用。
>
> 使用本技能即表示您已阅读、理解并同意上述数据处理方式。

## Getting started

### 前置要求

- Python 3.6+
- `requests` 库:`pip install requests`
- 有效的 Scnet API Key(`SCNET_API_KEY`)

### 快速使用

1. 申请 API Key:访问 [scnet.cn](https://www.scnet.cn) 注册并获取。
2. 配置 Key:在技能目录下创建 `config/.env`:

```ini
SCNET_API_KEY=your_scnet_api_key_here
SCNET_API_BASE=https://api.scnet.cn/api/llm/v1
```

3. 运行识别:

```bash
python scripts/main.py BIRTH_CERTIFICATE /path/to/birth_certificate.jpg
```

详细使用说明请参阅 [SKILL.md](SKILL.md)。

## Add your files

* [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload) 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:

```bash
cd existing_repo
git remote add origin https://github.com/SCNet-sugon/birth_medical_cert_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/repository/web_editor.html#create-a-merge-request)
* [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://makeareadme.com/) for this template.

_meta.json

{
  "ownerId": "kn7ax58mnefnavcfwakqxpsgqn82tacy",
  "slug": "birth-medical-cert-ocr",
  "version": "1.0.5",
  "publishedAt": 1786505206438
}

references/api-docs.md

# Sugon-Scnet OCR API 文档摘要

## 接口地址
`POST https://api.scnet.cn/api/llm/v1/ocr/recognize`

## 请求头
- `Content-Type: multipart/form-data`
- `Authorization: Bearer <你的 API Key>`

## 请求参数(表单)
| 参数名  | 类型 | 必填 | 描述                                   |
| ------- | ---- | ---- | -------------------------------------- |
| file    | File | 是   | 需要识别的图片文件                     |
| ocrType | str  | 是   | 识别类型枚举,详见 SKILL.md 参数说明   |

## 响应结构
```json
{
    "code": "0",
    "msg": "success",
    "data": [
        {
            "traceId": "202604010000006",
            "originalFilename": "出生医学证明示例.jpg",
            "cosPath": "/ocr/202604/01/出生医学证明示例.jpg",
            "result": [
                {
                    "status": 200,
                    "originFilename": "出生医学证明示例.jpg",
                    "cosPath": "/ocr/202604/01/出生医学证明示例.jpg",
                    "fileIndex": 1,
                    "cutIndex": 0,
                    "coordinate": [],
                    "classifyCode": "BIRTH_MEDICAL_CERTIFICATE",
                    "confidence": 0.997,
                    "elements": {
                      "title": "出生医学证明",
                      "newbornName": "刘小玲",
                      "gender": "女",
                      "birthTime": "2024年3月26日18时26分",
                      "gestationalWeeks": "40",
                      "birthWeight": "2860",
                      "birthLength": "49.0",
                      "birthPlace": "北京市省市海淀区县(区)",
                      "medicalInstitutionName": "北京市海淀医院",
                      "motherName": "张靓丽",
                      "motherAge": "24",
                      "motherNationality": "中国",
                      "motherEthnicGroup": "汉族",
                      "motherAddress": "北京市海淀区永兴路昌盛街道**胡同*号院**号",
                      "motherIdType": "居民身份证",
                      "motherIdNumber": "1100***********214",
                      "fatherName": "刘大梁",
                      "fatherAge": "26",
                      "fatherNationality": "中国",
                      "fatherEthnicGroup": "汉族",
                      "fatherAddress": "北京市海淀区永兴路昌盛街道**胡同*号院**号",
                      "fatherIdType": "居民身份证",
                      "fatherIdNumber": "1100***********214",
                      "issuingAuthority": "北京市海淀医院",
                      "issueDate": "2024年04月03日",
                      "certificateNumber": "Y5******99"
                    },
                    "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` 对象包含以下字段:

## BIRTH_CERTIFICATE (出生医学证明)
- `title`: 标题
- `newbornName`: 新生儿姓名
- `gender`: 性别
- `birthTime`: 出生时间
- `gestationalWeeks`: 出生孕周
- `birthWeight`: 出生体重
- `birthLength`: 出生身长
- `birthPlace`: 出生地点
- `medicalInstitutionName`: 医疗机构名称
- `motherName`: 母亲姓名
- `motherAge`: 母亲年龄
- `motherNationality`: 母亲国籍
- `motherEthnicGroup`: 母亲民族
- `motherAddress`: 母亲住址
- `motherIdType`: 母亲身份证件类别
- `motherIdNumber`: 母亲身份证件号码
- `fatherName`: 父亲姓名
- `fatherAge`: 父亲年龄
- `fatherNationality`: 父亲国籍
- `fatherEthnicGroup`: 父亲民族
- `fatherAddress`: 父亲住址
- `fatherIdType`: 父亲身份证件类别
- `fatherIdNumber`: 父亲身份证件号码
- `issuingAuthority`: 签发机构
- `issueDate`: 签发日期
- `certificateNumber`: 证书编号

Sponsored

Ads related to birth_medical_cert_ocr and adjacent AI workflows.