FaceRec
FaceRec copied to clipboard
main.py --"input" press q no react to save data
Please start turning slowly. Press 'q' to save and add this new user to the dataset Traceback (most recent call last):
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"