-
Notifications
You must be signed in to change notification settings - Fork 97
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
How to get Euler angles? #16
Comments
As your code in HeadPoseEstimation::pose(), after you get the rvec or pose matrix , how to get the face real Euler angles?(the value of yaw, pitch and roll) |
Thankyou for your interest ! We use ROS TF library to do it. You can see in src/ros_head_pose_estimator.cpp the following lines :
qrot is a quaternion, if you want euler angles you can use the matrix mrot as follow:
Please also have a look to our new package OpenFace Tracker, the head pose estimation is much more robust ! |
Thanks for your reply. |
rvec is a rotation vector (output of solvePNP), we use an OPENCV function "Rodigues" to get the 3x3 rotation matrix given this vector. |
Thanks.
After that , the 3 value of eulerAngles can reach 100+ or smaller than -100, I cannot understand what does the values mean. |
@chen1169968275 do you solved this? |
No description provided.
The text was updated successfully, but these errors were encountered: