Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Can't parse 'center'. Sequence item with index 0 has a wrong type #27

Open
uday-felix opened this issue Sep 28, 2021 · 2 comments

Comments

@uday-felix
Copy link

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)

@Wule-Lin
Copy link

Have you solved this problem?I also want to solve this bug

@HocJ2me
Copy link

HocJ2me commented Aug 19, 2024

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))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants