From 69281831abe6f46cdad6c14d7f7b499b376a2d27 Mon Sep 17 00:00:00 2001 From: Andrey Date: Tue, 27 Jul 2021 16:47:24 +0300 Subject: [PATCH] fix #254 --- imutils/face_utils/facealigner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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