产品详情
API参数 云鉴_动作活体检测_实人认证_人脸判断_活体识别_活体认证_动作活体判断SDK 调用地址: http,https://livenessdetectresult.api.bdymkt.com/livenessdetectresult 请求方式: POST 支持格式: application/x-www-form-urlencoded 调用工具: 去调试 请求参数(Headers) 请求参数(Query) 请求参数(Body)
- 名称
- 类型
- 是否必须
- 示例值
- 描述
- devicemodel
- string
- true
- vivo+X9s+L
- 设备型号
- os
- string
- true
- Android
- 设备类型
- osversion
- string
- true
- 6.0.1
- 系统版本号
- ossdkversion
- string
- true
- 23
- 系统sdk版本
- livenesssdkversion
- string
- true
- 1.1.1
- 活体sdk版本号
- deviceserialno
- string
- true
- 12345678
- 设备序列号
- realpkgname
- string
- true
- com.xxx.xxx
- 应用程序调用真实包名
- pkgname
- string
- true
- com.yyy.yyy
- 注册包名
- detectresultmsg
- string
- true
- 光线太明或太暗,或未将脸部置于屏幕正中间,或存在多张脸
- 检测结果描述
- detectresult
- string
- true
- 1003
- 检测结果码
- liverequestsn
- string
- true
- 2020122611202285757914537
- 请求流水号
<dependency>
<groupId>com.baidubce</groupId>
<artifactId>api-explorer-sdk</artifactId>
<version>1.0.0</version>
</dependency>
import com.baidubce.http.ApiExplorerClient;
import com.baidubce.http.AppSigner;
import com.baidubce.http.HttpMethodName;
import com.baidubce.model.ApiExplorerRequest;
import com.baidubce.model.ApiExplorerResponse;
// 动作活体检测SDK发起 Java示例代码
public class RequestDemo {
public static void main(String[] args) {
String path = "//livenessdetectresult";
ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.POST, path);
request.setCredentials("您的 access key", "您的 secret key");
request.addHeaderParameter("Content-Type", "application/x-www-form-urlencoded");
ApiExplorerClient client = new ApiExplorerClient(new AppSigner());
try {
ApiExplorerResponse response = client.sendRequest(request);
// 返回结果格式为Json字符串
System.out.println(response.getResult());
} catch (Exception e) {
e.printStackTrace();
}
}
}
点击复制代码
正常返回示例 {
"jobid": "ZT20201221130000138334806",
"responsetime": "20201221130000176",
"errcode": "00000",
"errmsg": "成功"
}
失败返回示例 {
"jobid": "ZT20201221130000138334806",
"responsetime": "20201221130000176",
"errcode": "00025",
"errmsg": "处理成功"
}
错误码定义
