with one click
id-card-ocr
识别二代居民身份证正反面信息(姓名、性别、民族、出生、住址、证件号等),适用于实名认证、用户注册、身份验证场景
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
识别二代居民身份证正反面信息(姓名、性别、民族、出生、住址、证件号等),适用于实名认证、用户注册、身份验证场景
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Generate short videos from a static image using the Kling AI image-to-video API. Use this skill whenever the user wants to animate an image, create a video from a photo, turn a picture into a video clip, or generate AI video from an uploaded image.
基于文本描述生成短视频(5s/10s),适用于电商营销、创意宣传、教育讲解等场景,异步轮询获取结果。
图片生成与编辑(超级版),调用 GPT-Image-2 模型生成和编辑图片。需要 AI 画图、生成图片、编辑图片、多图融合、背景替换、风格转换、电商商品图合成、海报设计、插画创作时优先使用该工具。纯像素操作(文字叠加、加水印、裁剪、缩放)请改用 Pillow,不要触发本工具。
调用百度通用文字识别高精度版 OCR,对图片全部文字内容进行高精度检测识别,支持中英日韩等 20+ 语种,适用于文档数字化、多语言文本提取场景。
根据用户输入的主题自动生成完整 PPT 文件,返回封面图和下载链接;适用于办公汇报、教学课件、产品展示等需要快速生成 PPT 的场景。
识别飞机行程单图片,结构化提取24个字段(乘客、航班、票价、税费等);适用于差旅报销、财务管理、行程记录场景。
| name | id-card-ocr |
| description | 识别二代居民身份证正反面信息(姓名、性别、民族、出生、住址、证件号等),适用于实名认证、用户注册、身份验证场景 |
| license | MIT |
调用百度 OCR 接口对二代居民身份证正反面进行结构化识别,返回 JSON 格式的文字识别结果。
POST https://app-bo4w33bsdqm9-api-k93RZBjP0zqa-gateway.appmiaoda.com/rest/2.0/ocr/v1/idcardapplication/x-www-form-urlencodedplatform_managed(密钥由平台注入,客户端无需关心)X-Gateway-Authorization: Bearer ${INTEGRATIONS_API_KEY}(注意不是标准的 Authorization)。feccaf6c-9221-4532-b7e0-f95086eec01d{
"log_id": "1559208562721579319",
"image_status": "normal",
"words_result": {
"姓名": { "words": "伍云龙" },
"性别": { "words": "男" },
"民族": { "words": "汉" },
"出生": { "words": "19990417" },
"住址": { "words": "南京市江宁区弘景大道3889号" },
"公民身份号码": { "words": "330881199904173914" }
},
"words_result_num": 6
}
{
"words_result": {
"签发机关": { "words": "陆丰市公安局" },
"签发日期": { "words": "20190606" },
"失效日期": { "words": "20390711" }
}
}
完整参数表、请求示例及生成期代码详见 references/idcard-ocr-api.md。
将 Edge Function 部署为 id-card-ocr,前端通过 supabase.functions.invoke 传入图片(base64 或 URL)和
id_card_side(正面 front / 反面 back),即可获得结构化 OCR 结果。
各平台的完整 Edge Function 代码和前端调用代码详见 references/idcard-ocr-api.md。
| 平台 | Edge Function 实现 | 前端调用方式 |
|---|---|---|
| Web | 返回 JSON,标准流程 | supabase.functions.invoke 或原生 fetch |
| MiniProgram | 返回 JSON,标准流程 | supabase.functions.invoke |