← 返回 Skills 市场
linyao58

batch-id

作者 linyao58 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
110
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install batch-id-ocr-to-txt
功能描述
批量识别最多50张身份证图片,提取姓名性别身份证号,生成格式规范的文本文件供下载查看。
使用说明 (SKILL.md)

batch-id-ocr-to-txt\r

\r 这是一个基于腾讯云 OCR 技术的 OpenClaw Skill。它能够自动识别图片中的身份证信息,并生成一份整齐的 .txt 文件发送给用户,非常适合需要批量处理证件信息的场景。\r \r

🌟 功能特点\r

\r

  • 批量处理:单次最高支持 50 张 身份证图片识别。\r
  • 格式规范:自动提取 姓名性别身份证号。\r
  • 排版整洁:每张证件信息占用三行,证件之间自动空行分隔,方便直接复制或打印。\r
  • 文件输出:直接生成 .txt 附件,避免对话框长文本刷屏。\r
  • 隐私安全:采用 OpenClaw 环境变量配置,不硬编码 API 密钥,确保您的腾讯云账号安全。\r \r

🛠️ 安装预要求\r

\r 在发布或使用此 Skill 之前,您需要:\r

  1. 拥有一个腾讯云账号。\r
  2. 腾讯云访问管理 (CAM) 获取您的 SecretIdSecretKey。\r

    建议:为安全起见,请创建一个仅拥有 QcloudOCRFullAccess 权限的子账号。\r

  3. 确保您的 OpenClaw 部署环境可以访问 ocr.tencentcloudapi.com。\r \r

🚀 配置说明 (关键)\r

\r 安装此 Skill 后,请在 OpenClaw 的 Skill 配置面板 中填入以下信息:\r \r | 配置项 | 说明 | 示例值 |\r | :--- | :--- | :--- |\r | TENCENT_SECRET_ID | 腾讯云 API 密钥 ID | AKIDxxxxxxxxxxxxxx |\r | TENCENT_SECRET_KEY | 腾讯云 API 密钥 Key | xxxxxxxxxxxxxxxxxxxx |\r | REGION | 识别接口地域 | ap-guangzhou (默认) |\r \r

📖 使用方法\r

\r

  1. 在对话框中发送一张或多张(最多50张)身份证正面照片。\r
  2. 触发本 Skill。\r
  3. 稍等片刻(程序内设有 0.5s/张 的频率保护),机器人将发送识别完成的消息。\r
  4. 下载并查看机器人发送的 身份证提取结果.txt 文件。\r \r

📝 输出格式示例\r

\r

姓名:张三\r
性别:男\r
身份证号:44010619900101xxxx\r
\r
姓名:李四\r
性别:女\r
身份证号:44010619950520xxxx
安全使用建议
This skill appears to do what it says: send user-supplied ID photos to Tencent Cloud OCR and return a .txt of extracted name/sex/ID. Before installing, verify: 1) the OpenClaw Skill config keys you must fill match the skill.yaml names (tencent-secret-id and tencent-secret-key) — SKILL.md's ENV name examples are slightly different; 2) the platform will install the tencentcloud-sdk-python dependency; 3) the code currently hardcodes region to 'ap-guangzhou' (so if you need a different region the code must be updated); 4) the skill will transmit images and sensitive extracted PII to Tencent Cloud—create a limited-permission subaccount (only OCR access) and avoid using high-privilege credentials; and 5) there is an entry-name mismatch in skill.yaml (entry: 'main.handler') vs. the provided file (batch_id.py exports handler) which may cause the skill not to run until corrected. If you need stronger privacy guarantees, do not send real IDs to the service until you confirm compliance with local laws and organizational policies.
能力评估
Purpose & Capability
The skill's purpose (extract name/sex/ID number from up to 50 ID images using Tencent OCR) aligns with the required Tencent credentials in skill.yaml and the code which calls Tencent's IDCardOCR. No unrelated credentials, binaries, or config paths are requested. Minor incoherences: SKILL.md mentions environment variable names like TENCENT_SECRET_ID/TENCENT_SECRET_KEY and REGION, while skill.yaml uses 'tencent-secret-id'/'tencent-secret-key' config keys and the code reads event.config values; the code hardcodes region to 'ap-guangzhou' instead of honoring a configurable REGION.
Instruction Scope
SKILL.md instructs users to provide images and Tencent credentials and to expect a .txt file. The runtime code only reads provided image URLs, calls Tencent OCR, formats results, writes a temp file, and returns it. It does not access unrelated files, system secrets, or external endpoints beyond the Tencent OCR endpoint and the image URLs supplied.
Install Mechanism
No install spec is provided (instruction-only install), but a requirements.txt lists tencentcloud-sdk-python. The platform must install that dependency at runtime; there is no arbitrary URL download or installer. This is a moderate operational note (dependency install required) rather than a security red flag.
Credentials
Only Tencent credentials are required (SecretId/SecretKey), which is proportional. However, SKILL.md uses uppercase ENV names and mentions REGION while the skill.yaml and code use different config key names and the code ignores REGION. Also note that images and extracted PII are sent to Tencent's OCR service—this is expected but has privacy implications.
Persistence & Privilege
The skill does not request persistent or elevated platform privileges (always:false). It writes only to /tmp and returns that file path. Nothing in the skill attempts to modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install batch-id-ocr-to-txt
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /batch-id-ocr-to-txt 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
batch-id-ocr-to-txt 1.0.1 - 支持批量识别最多 50 张身份证图片,并自动提取姓名、性别、身份证号。 - 统一输出格式为每张证件三行,证件间自动空行分隔,便于复制和打印。 - 识别结果生成为 .txt 附件,避免对话框刷屏。 - API 密钥从 OpenClaw 环境变量读取,提升账号安全性。
元数据
Slug batch-id-ocr-to-txt
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

batch-id 是什么?

批量识别最多50张身份证图片,提取姓名性别身份证号,生成格式规范的文本文件供下载查看。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 110 次。

如何安装 batch-id?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install batch-id-ocr-to-txt」即可一键安装,无需额外配置。

batch-id 是免费的吗?

是的,batch-id 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

batch-id 支持哪些平台?

batch-id 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 batch-id?

由 linyao58(@linyao58)开发并维护,当前版本 v1.0.1。

💬 留言讨论