微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🔍

1:N人脸搜索与重复账户检测专家

didit-face-search · vv1.1.0
专业技能 安全 S 级 作者 rosasalberto 公开目录收录
1.8k 下载 609 安装 5.5k 收藏 121.8k 浏览

简介

基于Didit官方API的1:N人脸搜索方案,快速检测重复账户与黑名单用户,助力平台实现精准身份去重与风险防控。

原始描述

Integrate Didit Face Search standalone API to perform 1:N facial search against all previously verified sessions. Use when the user wants to detect duplicate...

通过你的 Agent 添加

点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。

或者手动安装

Claude Codeunzip -o skill.zip -d ~/.claude/skills/didit-face-search/
其它 Agent解压到它自己的 skills 目录,目录名用 didit-face-search

包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。 技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。

中文使用说明 来自收录源

核心用法

didit-face-search 是一个纯文档型 Skill,提供 Didit 官方 Face Search API 的完整集成指南,用于执行 1:N 人脸搜索——将一张参考人脸与系统中所有已验证通过的会话进行比对。

主要功能场景:

  • 重复账户检测:新用户注册时比对历史库,防止一人多号
  • 黑名单筛查:自动识别并拦截被标记的欺诈用户
  • 面部去重:跨会话追踪同一自然人的多个账户
  • 人工审核辅助:输出 0-100% 相似度排序,支持阈值分级决策

技术实现要点

API 端点:POST https://verification.didit.me/v3/face-search/

关键参数 说明
user_image 待比对人脸图(JPEG/PNG/WebP/TIFF,≤5MB)
rotate_image 自动尝试 0/90/180/270° 旋转校正
vendor_data 业务方自定义追踪标识

相似度阈值策略(官方建议):

  • 90%+:高置信度同一人,建议自动标记重复
  • 70-89%:可能匹配,需人工复核
  • <70%:视为不同个体

返回结构包含 matches[] 数组,每匹配项提供 session_id、similarity_percentage、is_blocklist 标志及脱敏后的用户档案(姓名、证件类型、掩码证件号)。匹配图片 URL 60 分钟过期,符合隐私最小化原则。


显著优点

  1. 金融级权威背书:Didit 作为 KYC/身份验证领域专业服务商,API 经生产环境验证,支持全球合规场景
  2. 实时全库比对:对比范围覆盖应用内所有已批准验证会话,非抽样或缓存机制,确保查重完整性
  3. 自动化风控闭环:黑名单命中自动触发 Declined 状态,无需人工介入即可阻断风险
  4. 隐私设计内置:匹配图片限时 URL、文档号码自动掩码、无持久化生物特征存储要求
  5. 灵活集成:提供 Python/TypeScript 完整示例,支持被动活体检测 → 人脸搜索 → 证件核验 → 人脸比对的组合工作流

潜在局限与风险

局限 说明
依赖外部服务可用性 核心功能完全依赖 Didit API,单点故障风险;需关注服务 SLA
成本与配额限制 按调用量计费(403 Insufficient credits),高并发场景需预算规划
数据驻留与跨境 人脸数据上传至 Didit 服务器,需确认其数据中心位置是否符合本地法规(如中国《个人信息保护法》出境评估要求)
旋转校正性能开销 rotate_image=true 虽提升容错,但增加服务端处理延迟
T3 来源可信度 Skill 由个人开发者(rosasalberto)维护,非 Didit 官方直接发布,文档时效性需自行核验

特别风险提示:生物识别数据属敏感个人信息,使用前务必:

  • 审阅 Didit 数据处理协议(DPA)
  • 获取终端用户明示同意
  • 评估是否需要本地预处理(如模糊化背景)以降低传输风险

适合人群

  • 金融科技企业:需要满足反洗钱(AML)要求的客户身份识别(KYC)系统
  • 共享经济平台:防范司机/房东多账号薅羊毛
  • 在线教育考试:远程监考场景的身份一致性校验
  • 跨境电商平台:高风险国家卖家的二次身份核验

常规风险

  • API Key 泄露:DIDIT_API_KEY 需安全存储,避免硬编码或日志泄露
  • 相似度阈值误设:过高阈值漏检重复账户,过低阈值误杀正常用户,建议 A/B 测试校准
  • 多面孔场景歧义:MULTIPLE_FACES_DETECTED 警告需业务层决策选用哪张人脸

技能正文


name: didit-face-search description: > Integrate Didit Face Search standalone API to perform 1:N facial search against all previously verified sessions. Use when the user wants to detect duplicate accounts, search for matching faces, check if a face already exists in the system, prevent duplicate registrations, search against blocklist, or implement facial deduplication using Didit. Returns ranked matches with similarity percentages. version: 1.0.0 metadata: openclaw: requires: env: - DIDIT_API_KEY primaryEnv: DIDIT_API_KEY emoji: "🔍" homepage: https://docs.didit.me

Didit Face Search API (1:N)

Overview

Compares a reference face against all previously approved verification sessions to detect duplicate accounts and blocklisted faces. Returns ranked matches with similarity scores.

Key constraints:

  • Supported formats: JPEG, PNG, WebP, TIFF
  • Maximum file size: 5MB
  • Compares against all approved sessions in your application
  • Blocklist matches cause automatic decline

Similarity score guidance:

Range Interpretation
90%+ Strong likelihood of same person
70-89% Possible match, may need manual review
Below 70% Likely different individuals

API Reference: https://docs.didit.me/reference/face-search-standalone-api


Authentication

All requests require x-api-key header. Get your key from Didit Business Console → API & Webhooks.


Endpoint

POST https://verification.didit.me/v3/face-search/

Headers

Header Value Required
x-api-key Your API key Yes
Content-Type multipart/form-data Yes

Request Parameters (multipart/form-data)

Parameter Type Required Default Description
user_image file Yes — Face image to search (JPEG/PNG/WebP/TIFF, max 5MB)
rotate_image boolean No false Try 0/90/180/270 rotations for non-upright faces
save_api_request boolean No true Save in Business Console
vendor_data string No — Your identifier for session tracking

Example

import requests

response = requests.post(
    "https://verification.didit.me/v3/face-search/",
    headers={"x-api-key": "YOUR_API_KEY"},
    files={"user_image": ("photo.jpg", open("photo.jpg", "rb"), "image/jpeg")},
)
print(response.json())
const formData = new FormData();
formData.append("user_image", photoFile);

const response = await fetch("https://verification.didit.me/v3/face-search/", {
  method: "POST",
  headers: { "x-api-key": "YOUR_API_KEY" },
  body: formData,
});

Response (200 OK)

{
  "request_id": "a1b2c3d4-...",
  "face_search": {
    "status": "Approved",
    "total_matches": 1,
    "matches": [
      {
        "session_id": "uuid-...",
        "session_number": 1234,
        "similarity_percentage": 95.2,
        "vendor_data": "user-456",
        "verification_date": "2025-06-10T10:30:00Z",
        "user_details": {
          "name": "Elena Martinez",
          "document_type": "Identity Card",
          "document_number": "***456"
        },
        "match_image_url": "https://example.com/match.jpg",
        "status": "Approved",
        "is_blocklisted": false
      }
    ],
    "user_image": {
      "entities": [
        {"age": "27.6", "bbox": [40, 40, 120, 120], "confidence": 0.95, "gender": "female"}
      ],
      "best_angle": 0
    },
    "warnings": []
  }
}

Status Values & Handling

Status Meaning Action
"Approved" No concerning matches found Proceed — new unique user
"In Review" Matches above similarity threshold Review matches[] for potential duplicates
"Declined" Blocklist match or policy violation Check matches[].is_blocklisted and warnings

Error Responses

Code Meaning Action
400 Invalid request Check file format, size, parameters
401 Invalid API key Verify x-api-key header
403 Insufficient credits Top up at business.didit.me

Response Field Reference

Match Object

Field Type Description
session_id string UUID of the matching session
session_number integer Session number
similarity_percentage float 0-100 similarity score
vendor_data string Your reference from the matching session
verification_date string ISO 8601 timestamp
user_details.name string Name from the matching session
user_details.document_type string Document type used
user_details.document_number string Partially masked document number
match_image_url string Temporary URL (expires 60 min)
status string Status of the matching session
is_blocklisted boolean Whether the match is from the blocklist

User Image Object

Field Type Description
entities[].age string Estimated age
entities[].bbox array Face bounding box [x1, y1, x2, y2]
entities[].confidence float Detection confidence (0-1)
entities[].gender string "male" or "female"
best_angle integer Rotation applied (0, 90, 180, 270)

Warning Tags

Auto-Decline

Tag Description
NO_FACE_DETECTED No face found in image
FACE_IN_BLOCKLIST Face matches a blocklisted entry

Configurable

Tag Description
MULTIPLE_FACES_DETECTED Multiple faces detected — unclear which to use

Similarity threshold and allow multiple faces settings are configurable in Console.

Warning severity: error (→ Declined), warning (→ In Review), information (no effect).


Common Workflows

Duplicate Account Detection

1. During new user registration
2. POST /v3/face-search/ → {"user_image": selfie}
3. If total_matches == 0 → new unique user
   If matches found → check similarity_percentage:
     90%+ → likely duplicate, investigate matches[].vendor_data
     70-89% → possible match, flag for manual review

Combined Verification + Dedup

1. POST /v3/passive-liveness/ → verify user is real
2. POST /v3/face-search/ → check for existing accounts
3. POST /v3/id-verification/ → verify identity document
4. POST /v3/face-match/ → compare selfie to document photo
5. All Approved → verified, unique, real user

Security: Match image URLs expire after 60 minutes. Store only session_id and similarity_percentage — minimize biometric data on your servers.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

apibackendsecurityidentity-verificationfraud-preventionkyc

同类 Skill