diff --git a/imutils/face_utils/facealigner.py b/imutils/face_utils/facealigner.py index 6c3fe83..6422196 100644 --- a/imutils/face_utils/facealigner.py +++ b/imutils/face_utils/facealigner.py @@ -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