人脸验证-faceVerify
返回内容介绍:
public static String sample(TAipFace client) throws Exception {
String person_id= "test001";//待验证的个体(Person)ID
//参数为本地图片路径
String imagePath = "./User/xiaoshaui/face.jpg";
String result = client.faceVerify(imagePath,person_id);
//参数为本地图片二进制数组
byte[] image = FileUtil.readFileByBytes(imagePath);
String result = client.faceVerify(image,person_id);
return result;
}