人脸识别的结果不是中文怎么办?比如脸型试round?
"result":{
"face_num":1,
"face_list":[
{
"face_token":"228c339e222b5b5a0dcf15b53dc93bf5",
"location":{
"left":305.1,
"top":397.42,
"width":389,
"height":386,
"rotation":-1
},
"face_probability":1,
"angle":{
"yaw":0.28,
"pitch":9.84,
"roll":-4.31
},
"age":23,
"beauty":77.22,
"expression":{
"type":"smile",
"probability":0.99
},
"face_shape":{
"type":"round",
"probability":0.51
},
"gender":{
"type":"female",
"probability":1
},
"glasses":{
"type":"none",
"probability":1
},
"race":{
"type":"yellow",
"probability":1
},
"quality":{
"occlusion":{
"left_eye":0,
"right_eye":0.02,
"nose":0,
"mouth":0,
"left_cheek":0.02,
"right_cheek":0.02,
"chin_contour":0
},
"blur":0,
"illumination":176,
"completeness":1
},
"eye_status":{
"left_eye":1,
"right_eye":1
},
"emotion":{
"type":"happy",
"probability":0.81
},
"face_type":{
"type":"human",
"probability":0.93
}
}
]
多谢
接口文档有说明。根据那个可以写一个字典进行判断。