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

Fix【wrong type】about eyesCenter #270

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 2, 2022

  1. Fix【wrong type】about eyesCenter

    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))
    BeGentleman authored Apr 2, 2022
    Configuration menu
    Copy the full SHA
    97ba976 View commit details
    Browse the repository at this point in the history