人脸识别出现很大问题

2019-06-21 10:13:13 浏览数 (1)

这是测试代码,对于同一张图片转为base64,发起验证人脸,新建人脸,检测人脸请求这是测试代码,对于同一张图片转为base64,发起验证人脸,新建人脸,检测人脸请求

1.检测人脸请求

{"ImageWidth":540,"ImageHeight":960,"FaceInfos":[{"X":109,"Y":289,"Width":335,"Height":335,"FaceAttributesInfo":{"Gender":99,"Age":22,"Expression":0,"Glass":true,"Pitch":2,"Yaw":3,"Roll":3,"Beauty":72,"Hat":false,"Mask":false,"Hair":{"Length":1,"Bang":1,"Color":0},"EyeOpen":true},"FaceQualityInfo":{"Score":77,"Sharpness":100,"Brightness":52,"Completeness":{"Eyebrow":99,"Eye":99,"Nose":99,"Cheek":99,"Mouth":99,"Chin":99}}}],"RequestId":"8232377f-2d71-4133-bccb-519275d93b1b"}

返回了正确的人脸的描述信息说明这段base64码被成功解析

2.人脸验证请求

{"Score":100.0,"IsMatch":true,"RequestId":"7741b229-df5a-4d83-9661-e65758c369b0"}

用我的照片去比对人脸库中的一个女生和一个40岁的大叔都能判断为同一个人

3.创建人脸请求

{"SucFaceNum":0,"SucFaceIds":[],"RetCode":[-1102],"RequestId":"34c3d67e-d1a6-488e-94e3-9aea015e2b6b"}

文档中说-1102是base64解析错误,但是1请求都已经通过并返回人脸的正确位置

0 人点赞