Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inaccuracy when yaw is over around 80 degrees #10

Open
dl-maxwang opened this issue Jan 10, 2019 · 4 comments
Open

Inaccuracy when yaw is over around 80 degrees #10

dl-maxwang opened this issue Jan 10, 2019 · 4 comments

Comments

@dl-maxwang
Copy link

The pose estimation seems to work fine in -45-45 degree, however it seems accuracy is keep going down when yaw is over 80 degrees, when yaw is 90 degrees, the estimated yaw is 0...

is this caused by inaccuracy of facial landmark?(I spotted a lot of misplaced landmark in my own test image sets)

@yinguobing
Copy link
Owner

I'm afraid so. The pose is derived from the landmarks. Extreme pose makes it very difficulty to obtain accuracy landmarks.

@pirate-lofy
Copy link

Hi, @dl-maxwang, I want to know how u can calculate yaw and pitch in this code. thanks

@dl-maxwang
Copy link
Author

dl-maxwang commented Apr 27, 2020

Hi, @dl-maxwang, I want to know how u can calculate yaw and pitch in this code. thanks

You can find these code in estimate_head_pose.py

which use cv2.solvePnP to calculate rotation vector and transaltion vector.
the parameter is:

object_points = all model points # all model points is save in assets/model.txt
image_points = detected face points
camera_matrix = 
             [
               [img_size, 0, camera_center[0]],
               [0, img_size, camera_center[1]],
               [0, 0, 1]
             ]
distCoeffs = np.zeros((4, 1)) #assume no distortion

@pirate-lofy
Copy link

sorry, but I'm not that good at these stuff, can u explain more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants