更新时间:2022-07-28 GMT+08:00

简介

人脸识别服务软件开发工具包(FRS SDK)是对人脸识别服务提供的REST API进行的封装,以简化用户的开发工作。FRS SDK目前支持Java版本。

接口与API对应关系

人脸识别接口与API对应关系请参见表1

表1 接口与API对应关系表

接口

API

人脸检测

POST /v2/{project_id}/face-detect

人脸比对

POST /v2/{project_id}/face-compare

人脸搜索

POST /v2/{project_id}/face-sets/{face_set_name}/search

活体检测

动作活体检测

POST /v1/{project_id}/live-detect

人脸库资源管理

创建人脸库

POST /v2/{project_id}/face-sets

查询所有人脸库

GET /v2/{project_id}/face-sets

查询人脸库

GET /v2/{project_id}/face-sets/{face_set_name}

删除人脸库

DELETE /v2/{project_id}/face-sets/{face_set_name}

人脸资源管理

添加人脸

POST /v2/{project_id}/face-sets/{face_set_name}/faces

查询人脸

GET /v2/{project_id}/face-sets/{face_set_name}/faces?offset=xxx&limit=xxx

更新人脸

PUT /v2/{project_id}/face-sets/{face_set_name}/faces

删除人脸

DELETE /v2/{project_id}/face-sets/{face_set_name}/faces?field_name=field_value

批量删除人脸

DELETE /v2/{project_id}/face-sets/{face_set_name}/faces/batch