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

finding head pose looking direction #30

Open
SaddamBInSyed opened this issue Feb 17, 2020 · 0 comments
Open

finding head pose looking direction #30

SaddamBInSyed opened this issue Feb 17, 2020 · 0 comments

Comments

@SaddamBInSyed
Copy link

SaddamBInSyed commented Feb 17, 2020

@lincolnhard thanks for your work.

I am using the below code to find the head pose looing direction. (left, right, top, bottom)

y_value = float(str("{:7.2f}".format(euler_angle[1, 0])))
               x_value = float(str("{:7.2f}".format(euler_angle[0, 0])))
               if y_value >= 20:
                   print("looking left")
               elif y_value <= -20:
                   print("looking right")

               if x_value >= 20:
                   print("looking down")
               elif x_value <= -20:
                   print("looking up")


and seems it is fine.

if anyone knows better formula please share here.

@SaddamBInSyed SaddamBInSyed changed the title finding head direction finding head pose looking direction Feb 17, 2020
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

1 participant