wywu / LAB

[CVPR 2018] Look at Boundary: A Boundary-Aware Face Alignment Algorithm
https://wywu.github.io/projects/LAB/LAB.html
Other
1.01k stars 273 forks source link

about pose #29

Open qmj123 opened 5 years ago

qmj123 commented 5 years ago

Hi, Can this project calculate the head posture? This is very important to me. Thank you very much!

1996scarlet commented 4 years ago

Try this file, replace top 3 lines of get_head_pose function with

    image_pts = np.float32([shape[33], shape[38], shape[50], shape[46], shape[60],
                            shape[64], shape[68], shape[72], shape[55], shape[59],
                            shape[76], shape[82], shape[85], shape[16]])

And then

reprojectdst, euler_angle = get_head_pose(landmarks)
draw_head_pose_box(frame, reprojectdst)

pose

xuguozhi commented 4 years ago

https://www.cnblogs.com/as3asddd/p/7257820.html https://new.qq.com/omn/20180808/20180808G0693D.html compare the difference point order, and replace the new point index in above code