From c8089c04045944e37f270a4c9902e44494260afd Mon Sep 17 00:00:00 2001 From: SachaDee Date: Fri, 28 Jun 2024 19:25:54 -0300 Subject: [PATCH] Update face_model.py np.float is deprecated replacing with float --- ptgaze/common/face_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ptgaze/common/face_model.py b/ptgaze/common/face_model.py index 5aca3f8..0d96d6a 100644 --- a/ptgaze/common/face_model.py +++ b/ptgaze/common/face_model.py @@ -26,8 +26,8 @@ def estimate_head_pose(self, face: Face, camera: Camera) -> None: # The default values of rvec and tvec below mean that the # initial estimate of the head pose is not rotated and the # face is in front of the camera. - rvec = np.zeros(3, dtype=np.float) - tvec = np.array([0, 0, 1], dtype=np.float) + rvec = np.zeros(3, dtype=float) + tvec = np.array([0, 0, 1], dtype=float) _, rvec, tvec = cv2.solvePnP(self.LANDMARKS, face.landmarks, camera.camera_matrix,