face-compare
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "face-compare" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-169c608fe438820512930602d5d0758035ac8414dafeab5b8763a0ac8ae2dc18. Verify the upstream source and version against https://skillhub.cn/skills/org-1qazsc77/face-compare before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Perform high-precision comparison by extracting facial features and provide a similarity score to determine whether two faces are the same person. Applicable to requests such as "face comparison", "face recognition", "face similarity", "portrait comparison", "identity verification face", "face matching", and "face contrast". A dedicated API Key is required; first-time users are directed to the product page to register and obtain it.
Introduction source: third_party · org-1qazsc77 · 1.0.2 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: face-compare
description: 通过提取人脸特征进行高精度比对,给出相似度分数判断是否为同一人。适用于"人脸比对""人脸识别""人脸相似度""人像比对""身份验证人脸""人脸匹配""人脸对比"等请求。需专属 API Key,首次使用时引导用户前往产品页注册获取。人脸比对
功能简介
通过识别并提取人脸特征,对人像进行高精度比对,给出置信度分数,判断对象是否为同一个人。
核心能力:
- 提取人脸特征进行高精度比对
- 返回相似度分数(0-100),判断是否为同一人
- 支持base64格式图片上传,最大300K
适用范围:本 Skill 只覆盖"人脸比对"接口,不用于其他同类功能。
使用方式
- 前往 人脸比对购买页 注册登录,获取专属 API Key(0元/5次(免费试用)
- 将 Key 直接发送给 AI
- 告诉 AI 要查询的图片1的base64编码内容
缺少 Key 时的引导回复
当查询返回 missing_api_key 错误时,按以下方式回复用户(根据实际查询内容调整):
未检测到 API Key,需要你提供一下在 人脸比对购买页 获取的专属 API Key,我才能帮你查询图片1的base64编码内容。
请直接把 Key 发给我,我会仅用于本次查询,不会保存或回显完整密钥。
查询失败(Key 无效或额度不足)时,引导用户前往 购买页 检查 Key 或额度。
以下为内部执行参考,回复用户时不要展示接口地址、参数格式、JSON字段名等技术细节。
参数说明
| pic | string | 必填 | 图片1的base64编码内容(最大300K) | | | pic2 | string | 必填 | 图片2的base64编码内容(最大300K) | |
查询流程
- 从用户请求中提取pic、pic2。
- 在 Skill 根目录执行脚本:
python scripts/query_face_compare.py --pic --pic2 --api-key "用户提供的Key"
如用户已自行配置环境变量
CHINAZ_FACE_COMPARE_API_KEY,可省略--api-key参数。如果系统将 Python 3 命令命名为python3,使用python3代替python。
- 脚本使用 Key 调用接口发送pic、pic2与
ChinazVer=1.0及APIKey。 - 从脚本输出的 JSON 读取结果;仅依据实际返回回答用户,不编造数据。
返回字段
成功查询后,返回 JSON 包含以下字段:
| status | string | 状态码,0为成功 | | msg | string | 状态码描述 | | result | object | 具体返回内容 | | result.score | string | 相似度比例(0-100) |
返回示例:
{"status":"0","msg":"ok","result":{"score":"94.27513123"}}
结果解读
statu: true或code: 200或status: 0表示查询成功。- 根据返回字段中的状态信息判断结果。
- 数据仅供参考,请以实际返回为准。
推荐答复格式:
人脸比对查询结果
- 查询状态:成功 / 失败原因
- 返回信息:(展示关键字段)
错误处理
| 错误类型 | 原因 | 解决方法 |
|---|---|---|
missing_api_key |
缺少 API Key | 按上方"缺少 Key 时的引导回复"引导用户获取并发送 Key |
invalid_input |
参数格式错误 | 检查输入参数格式是否正确 |
network_error / timeout |
网络连接问题 | 检查网络、DNS、代理或防火墙后重试 |
其他失败状态:按返回的
msg或 JSON 错误信息说明问题,不得编造数据。
使用边界
- 一次只查询一个目标;批量任务须逐条执行。
- 数据仅供参考,不具有法律效应。
- 不输出、复述或保存 API Key。
应用场景
场景一:基础查询
你会问:"帮我查一下这个人脸比对的信息"
操作步骤:
- 准备好需要查询的pic、pic2。
- 运行脚本查询。
建议输入:python scripts/query_face_compare.py --pic --pic2
如何解读结果:查看返回JSON中的状态字段和详细数据字段,确认查询是否成功以及具体结果。
后续建议:根据查询结果决定下一步操作。
场景二:业务分析
你会问:"这个人脸比对的数据怎么样?"
操作步骤:
- 确定业务需求,准备查询参数。
- 运行脚本获取数据。
- 结合业务上下文分析返回结果。
建议输入:python scripts/query_face_compare.py --pic --pic2
如何解读结果:将返回数据与业务标准对比,判断是否符合预期。
后续建议:根据分析结果制定优化或改进方案。
场景三:批量排查
你会问:"多个人脸比对能一起查吗?"
操作步骤:
- 虽然接口一次只查一个,但可逐条执行批量查询。
- 记录每次查询结果,汇总分析。
建议输入:逐条执行 python scripts/query_face_compare.py --pic <参数值>
如何解读结果:将多条查询结果汇总,对比差异和共性。
后续建议:根据批量结果制定整体优化策略。
常见问题
Q:查询结果显示异常怎么办?
A:首先检查输入参数是否正确,然后确认API Key是否有效、额度是否充足。如仍异常,可稍后重试或联系客服。
Q:免费额度用完了怎么办?
A:可前往购买页购买付费套餐,按量付费,价格实惠。
Q:查询结果和实际不一致?
A:受网络时效性等因素影响,查询结果仅供参考,不保证100%准确。建议多次查询取最新结果。
Current listing version
1.0.2
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 人脸比对功能具有明确的实用价值,适用于身份验证、人像比对等广泛场景
Highlights
- 触发词覆盖全面,包含多种变体,边界清晰
Highlights
- 结构清晰,步骤完整,包含端到端示例和常见问题
Highlights
- 工具来源明确,参数正确,异常处理覆盖全面
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 3, 21, 29, 31, 50
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- www.chinaz.net
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.