PyImageSearch / imutils

A series of convenience functions to make basic image processing operations such as translation, rotation, resizing, skeletonization, and displaying Matplotlib images easier with OpenCV and Python.
MIT License
4.51k stars 1.03k forks source link

Strong typed var that was causing error. #264

Closed allanhermann closed 2 years ago

allanhermann commented 2 years ago

When used on Python3, this utility broke with the error: "TypeError: Can't parse 'center'. Sequence item with index 0 has a wrong type"

I debugged it and found that the error was the absence of typing on the variable eyesCenter, so I strong typed the var that was causing the error.

ariG23498 commented 2 years ago

Hey @allanhermann

Could you add a minimal reproducible code snippet for the bug?