From ab714dfbfe50cf9ff55319a781504381f37bbd96 Mon Sep 17 00:00:00 2001 From: iperov Date: Sun, 28 Apr 2019 16:29:32 +0400 Subject: [PATCH] _ --- facelib/LandmarksProcessor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/facelib/LandmarksProcessor.py b/facelib/LandmarksProcessor.py index b6d3188..a49076b 100644 --- a/facelib/LandmarksProcessor.py +++ b/facelib/LandmarksProcessor.py @@ -348,7 +348,7 @@ def estimate_pitch_yaw_roll(aligned_256px_landmarks): np.zeros((4, 1)) ) pitch, yaw, roll = mathlib.rotationMatrixToEulerAngles( cv2.Rodrigues(rotation_vector)[0] ) - pitch = np.clip ( pitch*1.25, -1.0, 1.0 ) - yaw = np.clip ( yaw*1.25, -1.0, 1.0 ) - roll = np.clip ( roll*1.25, -1.0, 1.0 ) + pitch = np.clip ( pitch/1.30, -1.0, 1.0 ) + yaw = np.clip ( yaw / 1.11, -1.0, 1.0 ) + roll = np.clip ( roll/3.15, -1.0, 1.0 ) return -pitch, yaw, roll