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

Does anyone know how to plot the pose data from arcface? #2565

Open
Mr-Nobody-dey opened this issue Apr 19, 2024 · 1 comment
Open

Does anyone know how to plot the pose data from arcface? #2565

Mr-Nobody-dey opened this issue Apr 19, 2024 · 1 comment

Comments

@Mr-Nobody-dey
Copy link

I am unable to understand what are the three outputs of pose. Generally it is [yaw, pitch and roll], but here it is not working.

@MukeshAppana
Copy link

yes,
It can be done
Pose consists of the yaw, roll, pitch.
Yaw: Rotation of the head to the left or right (shaking your head 'no').
Pitch: Rotation of the head up or down (nodding your head 'yes').
Roll: Rotation of the head around its central axis (tilting your head to one side).
image
All the 3 values represents the angles of the face and with that angles we can decide the orientation of the face.
For plotting you can write the function by using cv2 and numpy
here is the sample function
cv2.line(image, (x_center, y_center), (int(x_center + scale * np.sin(yaw * np.pi / 180)), int(y_center - scale * np.cos(yaw * np.pi / 180))), (0, 0, 255), 2) # Yaw cv2.line(image, (x_center, y_center), (int(x_center + scale * np.sin(roll * np.pi / 180)), int(y_center + scale * np.cos(roll * np.pi / 180))), (0, 255, 0), 2) # Roll cv2.line(image, (x_center, y_center), (int(x_center + scale * np.sin(pitch * np.pi / 180)), int(y_center - scale * np.cos(pitch * np.pi / 180))), (255, 0, 0), 2) # Pitch

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

2 participants