人脸检测与属性分析

版权声明: https://blog.csdn.net/u013841196/article/details/82795331

1.功能介绍:

检测图中的人脸,并为人脸标记出边框。检测出人脸后,可对人脸进行分析,获得眼、口、鼻轮廓等72个关键点定位准确识别多种人脸属性,如性别,年龄,表情等信息。该技术可适应大角度侧脸,遮挡,模糊,表情变化等各种实际环境

2.百度云人脸检测结果:(省略landmark信息)

1)输入:完全正脸图像
在这里插入图片描述
检测结果:
在这里插入图片描述
欧拉角和面部遮挡都比较准确。

{ "log_id": "2524333126", "result_num": 1,
 "result": [ { "face_probability": 1,
 "rotation_angle": -5, 
"yaw": -4.094336033, 
"pitch": 1.09559834, 
"roll": -5.439408779, 
"location": { "left": 154, "top": 284, "width": 468, "height": 428 }, 
"qualities": { "blur": 1.498731868e-11, "illumination": 179, "completeness": 1,
"occlusion": { 
"left_eye": 0.009523809887, 
"right_eye": 0, 
"nose": 0.007843137719, 
"mouth": 0, 
"left_cheek": 0.01055662148, 
"right_cheek": 0.02016128972,
"chin": 0.002296211198 }, 
"type": { "human": 0.9991260171, "cartoon": 0.0008739687619 } }, "age": 22, "beauty": 55.94826508, "expression": 0, "expression_probablity": 0.9999961853, "faceshape": [ { "type": "square", "probability": 0.5104604363 }, { "type": "triangle", "probability": 0.005711323116 }, { "type": "oval", "probability": 0.2379851341 }, { "type": "heart", "probability": 0.0908838585 }, { "type": "round", "probability": 0.1549592763 } ], "gender": "female", "gender_probability": 0.9997320771, "glasses": 1, "glasses_probability": 0.9998537302, "race": "yellow", "race_probability": 0.999879837 } ] }

2)输入:口罩遮挡人脸图像
在这里插入图片描述
检测结果:
在这里插入图片描述
欧拉角和面部遮挡都比较准确。

{ "log_id": "2515812783", "result_num": 1, 
"result": [ { "face_probability": 0.9291940928, 
"rotation_angle": 0, 
"yaw": 4.377589226, 
"pitch": 4.41075325, 
"roll": -0.2839249372, 
"location": { "left": 393, "top": 251, "width": 417, "height": 392 },
"qualities": { "blur": 2.148565104e-9, "illumination": 224, "completeness": 1,
 "occlusion": { 
"left_eye": 0,
 "right_eye": 0.2964480817, 
"nose": 0.7723035812, 
"mouth": 0.8764045238,
 "left_cheek": 0.4345549643, 
"right_cheek": 0.9472000003,
 "chin": 0.847645402 }, 
"type": { "human": 0.9969949126, "cartoon": 0.003005114384 } }, "age": 24, "beauty": 54.19326782, "expression": 1, "expression_probablity": 0.8708698153, "faceshape": [ { "type": "square", "probability": 0.07995218784 }, { "type": "triangle", "probability": 0.000007038182957 }, { "type": "oval", "probability": 0.2927105427 }, { "type": "heart", "probability": 0.5861080289 }, { "type": "round", "probability": 0.04122218862 } ], "gender": "female", "gender_probability": 0.9967548251, "glasses": 0, "glasses_probability": 0.9998315573, "race": "yellow", "race_probability": 0.9998655319 } ] }

3)输入:戴墨镜人脸图像
在这里插入图片描述
检测结果:
在这里插入图片描述
欧拉角和面部遮挡都比较准确。

{ "log_id": "2530251330", "result_num": 1, 
"result": [ { "face_probability": 1, 
"rotation_angle": 0, 
"yaw": 0.9055920243, 
"pitch": 5.728501797, 
"roll": 0.1848027259, 
"location": { "left": 142, "top": 177, "width": 241, "height": 227 },
"qualities": { "blur": 4.285785338e-10, "illumination": 88, "completeness": 1,
 "occlusion": { 
"left_eye": 0.8795180917,
"right_eye": 0.9847715497, 
"nose": 0.2036055177, 
"mouth": 0, 
"left_cheek": 0.2228163928, 
"right_cheek": 0.11825829, 
"chin": 0 }, 
"type": { "human": 0.9939618707, "cartoon": 0.006038106047 } }, "age": 30, "beauty": 39.09700012, "expression": 1, "expression_probablity": 0.9229713678, "faceshape": [ { "type": "square", "probability": 0.1952629089 }, { "type": "triangle", "probability": 0.005658160895 }, { "type": "oval", "probability": 0.5680598021 }, { "type": "heart", "probability": 0.08496378362 }, { "type": "round", "probability": 0.1460553259 } ], "gender": "female", "gender_probability": 0.9726414084, "glasses": 2, "glasses_probability": 0.9999991655, "race": "yellow", "race_probability": 0.956635654 } ] }

4)输入:遮挡一只眼睛的人脸图像
在这里插入图片描述
检测结果:
在这里插入图片描述
Pitch姿态角有偏差,遮挡比较准确。

{ "log_id": "2536847361", "result_num": 1, 
"result": [ { "face_probability": 1, 
"rotation_angle": -5, 
"yaw": 5.305870056, 
"pitch": -8.821922302, 
"roll": -4.220362186,
 "location": { "left": 418, "top": 216, "width": 230, "height": 254 },
"qualities": { "blur": 5.76735772e-7, "illumination": 170, "completeness": 1, 
"occlusion": { 
"left_eye": 0.8531073332, 
"right_eye": 0, 
"nose": 0.001015228452, 
"mouth": 0, 
"left_cheek": 0.0700179562, 
"right_cheek": 0.02482269518, 
"chin": 0 }, 
"type": { "human": 0.9610199332, "cartoon": 0.03898006305 } }, "age": 22, "beauty": 60.26138687, "expression": 2, "expression_probablity": 0.9998412132, "faceshape": [ { "type": "square", "probability": 0.05834767222 }, { "type": "triangle", "probability": 0.001425918657 }, { "type": "oval", "probability": 0.5682057738 }, { "type": "heart", "probability": 0.005290728528 }, { "type": "round", "probability": 0.3667299449 } ], "gender": "female", "gender_probability": 0.8902821541, "glasses": 0, "glasses_probability": 0.9963592887, "race": "yellow", "race_probability": 0.9935578704 } ] }

5)输入:闭眼睛的人脸图像
在这里插入图片描述
检测结果:
边缘模糊人脸依然可以检测
在这里插入图片描述
角度基本正常,遮挡检测比较好。

{ "log_id": "2542693680", "result_num": 2, 
"result": [ { "face_probability": 1,
"rotation_angle": 0, 
"yaw": -16.32855606, 
"pitch": 3.860540628, 
"roll": -3.498055935, 
"location": { "left": 272, "top": 136, "width": 88, "height": 79 },
"qualities": { "blur": 0.001055532251, "illumination": 175, "completeness": 1, 
"occlusion": { 
"left_eye": 0, 
"right_eye": 0.01533219777, 
"nose": 0, "mouth": 0, 
"left_cheek": 0.09587340802, 
"right_cheek": 0.01217861939, 
"chin": 0.006575014908 }, 
"type": { "human": 0.9963043928, "cartoon": 0.003695592517 } }, "age": 23, "beauty": 70.79827118, "expression": 0, "expression_probablity": 0.9999485016, "faceshape": [ { "type": "square", "probability": 0.01427508425 }, { "type": "triangle", "probability": 0.08059924841 }, { "type": "oval", "probability": 0.265529573 }, { "type": "heart", "probability": 0.1001884267 }, { "type": "round", "probability": 0.5394076705 } ], "gender": "female", "gender_probability": 0.9999839067, "glasses": 0, "glasses_probability": 0.9999992847, "race": "yellow", "race_probability":0.891247987 }

6)输入:侧脸图像
在这里插入图片描述
检测结果:
在这里插入图片描述
结果都比较准确。

{ "log_id": "2549895492", "result_num": 1, 
"result": [ { "face_probability": 0.8107107282, 
"rotation_angle": -6, 
"yaw": 53.0256958, 
"pitch": 2.702250242, 
"roll": 0.2548225224, 
"location": { "left": 241, "top": 190, "width": 82, "height": 95 }, 
"qualities": { "blur": 0.002113222377, "illumination": 142, "completeness": 1, 
"occlusion": { 
"left_eye": 0.9797570705, 
"right_eye": 0, 
"nose": 0.0009132419946, 
"mouth": 0.07692307979,
"left_cheek": 0.5096153617, 
"right_cheek": 0.7012181878, 
"chin": 0.3668373823 }, 
"type": { "human": 0.9778695107, "cartoon": 0.02213051729 } }, "age": 22, "beauty": 52.59563065, "expression": 0, "expression_probablity": 0.9998070598, "faceshape": [ { "type": "square", "probability": 0.03663410619 }, { "type": "triangle", "probability": 0.000001870189408 }, { "type": "oval", "probability": 0.4072867334 }, { "type": "heart", "probability": 0.3174336851 }, { "type": "round", "probability": 0.2386436164 } ], "gender": "female", "gender_probability": 0.9879107475, "glasses": 0, "glasses_probability": 0.9998804331, "race": "yellow", "race_probability": 0.9756829739 } ] }

**综上:**姿态估计和遮挡检测效果都比较好。

猜你喜欢

转载自blog.csdn.net/u013841196/article/details/82795331