Open uday-felix opened 3 years ago
Have you solved this problem?I also want to solve this bug
I eventually added all of the facealigner.py code into my code and got the same error. Adding int() to the tuple fixed it:
eyesCenter = (int((leftEyeCenter[0] + rightEyeCenter[0]) // 2),
int((leftEyeCenter[1] + rightEyeCenter[1]) // 2))
Cant run the file create_face.py .. filing at File "D:\custom_projects\face_detection\venv\lib\site-packages\imutils\face_utils\facealigner.py", line 69, in align M = cv2.getRotationMatrix2D(center=eyesCenter, angle=angle, scale=1)