在检测人脸这方面,两个文档同一内容的说明:
- face_field否string 包括age,beauty,expression,faceshape,gender,glasses,landmark,race,quality,facetype信息 逗号分隔. 默认只返回face_token、人脸框、概率和旋转角度
https://ai.baidu.com/docs#/Face-Python-SDK/top
- face_field否string包括age,beauty,expression,face_shape,gender,glasses,landmark,landmark72,landmark150,race,quality,eye_status,emotion,face_type信息 逗号分隔. 默认只返回face_token、人脸框、概率和旋转角度
https://ai.baidu.com/docs#/Face-Detect-V3/top
究竟是facetype,还是face_type?测试了一下,是face_type。
以下为吾输出的一段,供大家参考:
{u'log_id': 305486826144468861, u'timestamp': 1552614446, u'cached': 0,
u'result': {
u'face_list': [{
u'angle': {u'yaw': -8.19, u'roll': -11.17, u'pitch': 2.62},
u'face_shape': {u'type': u'square', u'probability': 0.53},
u'quality': {u'illumination': 95,
u'occlusion': {u'right_eye': 0, u'left_eye': 0, u'left_cheek': 0, u'mouth': 0, u'nose': 0, u'right_cheek': 0, u'chin_contour': 0}, u'completeness': 1, u'blur': 0},
u'race': {u'type': u'yellow', u'probability': 1},
u'location': {u'width': 273, u'top': 308.04, u'height': 275, u'rotation': -8, u'left': 839.27},
u'face_token': u'540fc0d37c53c6b5dea03d68ffe666f6',
u'expression': {u'type': u'none', u'probability': 1},
u'face_probability': 1}],
u'face_num': 1},
u'error_code': 0, u'error_msg': u'SUCCESS'}