← 返回
内容创作 Key 中文

iFLYTEK Face Compare

Compare two face images and return similarity score using iFlytek Face Recognition API.
使用 iFlytek 人脸识别 API 比较两张人脸图像并返回相似度得分。
dzy-1026
内容创作 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 467
下载
💾 10
安装
1
版本
#latest

概述

👤 Face Compare

Compare two face images and calculate their similarity score using iFlytek's advanced face recognition technology.

Designed for identity verification, face matching, and security authentication scenarios.


✨ Features

  • High-accuracy face comparison
  • Base64 image encoding support
  • Multiple image format support (jpg, png, bmp)
  • Detailed similarity scoring
  • One-command execution

🚀 Usage

python {baseDir}/scripts/index.py "<image1_path>" "<image2_path>"

Example:

python {baseDir}/scripts/index.py "/path/to/face1.jpg" "/path/to/face2.jpg"

📋 Input Specification

Image Requirements

  • Supported formats: JPG, PNG, BMP
  • File size: < 4MB recommended
  • Image should contain clear, frontal face
  • One face per image for best results

⚠ Constraints

  • Both image paths must be valid and accessible
  • Images must contain detectable faces
  • API credentials must be configured
  • Network connection required

🔧 Environment Setup

Required:

  • Python available in PATH
  • Environment variables configured:
export XF_FACE_APP_ID=your_app_id
export XF_FACE_API_KEY=your_api_key
export XF_FACE_API_SECRET=your_api_secret

Or configure it in ~/.openclaw/openclaw.json:

{
	"env": {
		"XF_FACE_APP_ID": "your_app_id",
		"XF_FACE_API_KEY": "your_api_key",
		"XF_FACE_API_SECRET": "your_api_secret"
	}
}

📦 Output

Returns JSON response with:

  • Similarity score (0-100)
  • Comparison result (same person or not)
  • Confidence level
  • Face detection status

🎯 Target Use Cases

  • Identity verification
  • Access control systems
  • Duplicate account detection
  • Photo matching services
  • Security authentication
  • Attendance systems

🛠 Extensibility

Future enhancements may include:

  • Batch face comparison
  • Face quality assessment
  • Multiple face detection
  • Liveness detection integration
  • Custom threshold configuration

Built for automation workflows and AI-driven identity verification.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 18:42 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

iFLYTEK AI PPT Generator

dzy-1026
基于优化关键词生成专业结构化的PPT演示文稿
★ 0 📥 877
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,173
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 199,664