mirror of https://github.com/vladmandic/human
cleanup
parent
a5b78acdef
commit
1fc99eb1a7
|
@ -48,16 +48,16 @@ const calculateFaceAngle = (face, image_size): { pitch: number, yaw: number, row
|
|||
if (r10 < 1) {
|
||||
if (r10 > -1) {
|
||||
thetaZ = Math.asin(r10);
|
||||
thetaY = Math.atan2(-r20, r00);
|
||||
// thetaY = Math.atan2(-r20, r00);
|
||||
thetaX = Math.atan2(-r12, r11);
|
||||
} else {
|
||||
thetaZ = -pi / 2;
|
||||
thetaY = -Math.atan2(r21, r22);
|
||||
// thetaY = -Math.atan2(r21, r22);
|
||||
thetaX = 0;
|
||||
}
|
||||
} else {
|
||||
thetaZ = pi / 2;
|
||||
thetaY = Math.atan2(r21, r22);
|
||||
// thetaY = Math.atan2(r21, r22);
|
||||
thetaX = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue