人脸搜索-faceIdentify
返回内容介绍:
public static String sample(TAipFace client) throws Exception {
String group_id = "test001";//候选人组ID(个体创建时设定)
int topn = 9;//返回的候选人个数(默认9个)
//参数为本地图片路径
String imagePath = "./User/xiaoshaui/face.jpg";
String result = client.faceIdentify(imagePath,group_id ,topn );
//参数为本地图片二进制数组
byte[] image = FileUtil.readFileByBytes(imagePath);
String result = client.faceIdentify(image,group_id ,topn );
return result;
}