Face Recognition API
收藏Face Recognition API 数据集概述
基本信息
- 数据集名称: Face Recognition API
- 提供商: LelouchSoft
- 类别: Artificial Intelligence/Machine Learning
- 当前版本: v1.01
- 基础URL: https://api.lelouchsoft.com/face-recognition/v1
- 订阅者数量: 117
服务指标
- 流行度: 9.6
- 服务等级: 89%
- 延迟: 352ms
- 测试状态: 100%
订阅计划
- BASIC: $0.00 / 月
- PRO: $100.00 / 月
- ULTRA: $180.00 / 月
功能描述
该API提供先进的面部识别和分析功能,可用于用户验证、安全和个性化用户体验等应用。
认证方式
访问API需要使用API密钥,需在请求的Authorization头部中包含该密钥。
示例:Authorization: Bearer YOUR_API_KEY
端点
1. 检测人脸
-
HTTP方法: POST
-
端点: /detect
-
功能: 检测并返回图像中找到的人脸信息。
-
请求头:
- Authorization: Bearer YOUR_API_KEY
- Content-Type: application/json
-
请求体示例: json { "image_url": "https://example.com/image.jpg" }
-
响应示例: json { "faces": [ { "face_id": "12345", "bounding_box": { "x": 100, "y": 150, "width": 200, "height": 200 } } ] }
2. 比较人脸
-
HTTP方法: POST
-
端点: /compare
-
功能: 比较两张人脸并返回相似度分数。
-
请求头:
- Authorization: Bearer YOUR_API_KEY
- Content-Type: application/json
-
请求体示例: json { "image1_url": "https://example.com/image1.jpg", "image2_url": "https://example.com/image2.jpg" }
-
响应示例: json { "match": true, "confidence": 0.98 }
3. 添加人脸到集合
-
HTTP方法: POST
-
端点: /collection/add
-
功能: 将检测到的人脸添加到指定集合以供将来识别。
-
请求头:
- Authorization: Bearer YOUR_API_KEY
- Content-Type: application/json
-
请求体示例: json { "collection_id": "my-collection", "image_url": "https://example.com/image.jpg", "face_id": "12345" }
-
响应示例: json { "status": "success", "face_id": "12345" }
4. 在集合中搜索人脸
-
HTTP方法: POST
-
端点: /collection/search
-
功能: 在指定集合中搜索相似人脸。
-
请求头:
- Authorization: Bearer YOUR_API_KEY
- Content-Type: application/json
-
请求体示例: json { "collection_id": "my-collection", "image_url": "https://example.com/image.jpg" }
-
响应示例: json { "matches": [ { "face_id": "12345", "similarity": 0.95 } ] }
错误处理
API提供带有适当HTTP状态码的错误响应。
- 常见错误:
- 400 Bad Request: 请求格式无效。
- 401 Unauthorized: 缺少或API密钥无效。
- 404 Not Found: 请求的资源不存在。
- 500 Internal Server Error: 服务器发生错误。
- 错误响应示例: json { "error": { "code": 400, "message": "Invalid image URL" } }
速率限制
请参考RapidAPI上API计划详情中指定的速率限制。超出这些限制可能导致API访问被暂时暂停。
支持
如需帮助,请通过支持电子邮件联系我们的支持团队或访问我们的支持页面。



