Open BeGentleman opened 2 years ago
I want to verify this fix, I have tested this. I'm also asking if this can be marge and integrated into a new release. thanks
i too would love to see this fix merged as soon as possible! i have tested it as well and casting to int does make it work.
Any possibility to merge this PR?
Error Info:【TypeError: Can't parse 'center'. Sequence item with index 0 has a wrong type】 Cause by: eyesCenter's element's type is numpy.int64, which is need an int type Solved by: change numpy.int64 into int type sources: eyesCenter = ((leftEyeCenter[0] + rightEyeCenter[0]) // 2, (leftEyeCenter[1] + rightEyeCenter[1]) // 2) -> eyesCenter = (int((leftEyeCenter[0] + rightEyeCenter[0]) // 2), int((leftEyeCenter[1] + rightEyeCenter[1]) // 2))