Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
andvikt committed Jul 27, 2021
1 parent c12f153 commit 6928183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imutils/face_utils/facealigner.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def align(self, image, gray, rect):
(leftEyeCenter[1] + rightEyeCenter[1]) // 2)

# grab the rotation matrix for rotating and scaling the face
M = cv2.getRotationMatrix2D(eyesCenter, angle, scale)
M = cv2.getRotationMatrix2D([int(x) for x in eyesCenter], angle, scale)

# update the translation component of the matrix
tX = self.desiredFaceWidth * 0.5
Expand Down

0 comments on commit 6928183

Please sign in to comment.