FaceRec icon indicating copy to clipboard operation
FaceRec copied to clipboard

main.py --"input" press q no react to save data

Open hsm4703 opened this issue 5 years ago • 1 comments

Please start turning slowly. Press 'q' to save and add this new user to the dataset Traceback (most recent call last):

hsm4703 avatar Jul 22 '19 06:07 hsm4703

Hey I had the same issue , please check if you got divide by zero error on : align_custom.py , if you do just add try exp on def getPos Line 21 where the except be return center , Like this:

    def getPos(self, points):
        try:
            if abs(points[0] - points[2]) / abs(points[1] - points[2]) > 2:
                return "Right"
            elif abs(points[1] - points[2]) / abs(points[0] - points[2]) > 2:
                return "Left"
            return "Center"
        except expression as identifier:
            return "Center"

eitamring avatar May 05 '20 08:05 eitamring