Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ptgaze/common/face_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down