腾讯云人脸识别活体检测参数说明
活体检测简要描述
用户提供自拍照,应用平台对提供的照片进行活体检测,返回活体检测结果。
照片类型限制为PNG、JPG、JPEG、BMP,大小限制为2MB以下
请求方式
HTTP 1.1 (Post + body)
请求参数说明
注:Content-Type为’application/json; charset=utf-8’
{ "request_id":"0", // [string] 用户http 请求的唯一标识,由客户端生成
"person_id":"1234567890", // [string] 用户唯一标识
"device": {
"plat":"3", // [string] 平台,其中客户端平台类型为
(1->android, 2->ios, 3->pc)
"version":"10.3.3", // [string] 版本号
"model":"MBP 2017" // [string] 机型
},
"file": {
"type":"jpeg", // [string] 文件类型
"data":"XXXX" // [string] Base64 编码后的图片内容
}
}
返回参数说明:
注:Content-Type为’application/json; charset=utf-8’
{ "code":"0", // [string] 接口状态码
"msg":"", // [string] 结果描述
"request_id":"0", // [string] 请求的唯一标识
"data":{
"person_id":"1234567890", // [string] 用户唯一标识
"bio_score":"7.1", // [string] 活体分数
"have_face":true, // [bool] 有无人脸,true:有,false:无
"is_alive":true // [bool] 是否活体,true: 活体,false: 非活体
}
}
错误码
0 成功
40002 活体识别失败