怎么获取云人脸库中的照片到客户端
s17810645353 发布于2018-10 浏览:1982 回复:2
0
收藏

怎么通过人脸搜索后的数据,从云人脸库中堆获取照片到客户端。

可以在人脸注册时,保存一份人脸数据在自己的数据库中,便于通过查找到的用户ID拿到图片。

这个具体怎么操作,求大神指点指点。

String url = "https://aip.baidubce.com/rest/2.0/face/v3/faceset/user/add";
String FilePath = "F:\\timg.jpg";
String imgPath = Base64Util.GetImageStrFromPath(FilePath);
try {
Map map = new HashMap<>();
map.put("image", imgPath);
map.put("group_id", "group_repeat");
map.put("user_id", "user3");
map.put("user_info", "aaa");
// map.put("liveness_control", "NORMAL");
map.put("image_type", "BASE64");
map.put("quality_control", "LOW");
String param = GsonUtils.toJson(map);

收藏
点赞
0
个赞
共2条回复 最后由彦丶子凡回复于2018-10
#3彦丶子凡回复于2018-10

还有就是这个平台不支持Markdown,你可以放代码图片,大家看的舒服一点

0
#2彦丶子凡回复于2018-10

你这个代码写的有问题啊

0
TOP
切换版块