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,