0
0
Fork 0
mirror of https://github.com/boltgolt/howdy.git synced 2024-09-19 09:51:19 +02:00
howdy/utils.py
2018-01-05 14:34:18 +01:00

22 lines
543 B
Python

def print_menu(encodings):
if len(encodings) == 3:
print("There is 1 existing face model for this user")
else:
print("There are " + str(int(len(encodings) / 3)) + " existing face models for this user")
print("What do you want to do?\n")
print("1: Add additional face model")
print("2: Overwrite older model(s)")
print("0: Exit")
com = input("Option: ")
if com == "1":
return encodings
elif com == "2":
return []
elif com == "0":
sys.exit()
else:
print("Invalid option '" + com + "'\n")
return print_menu(encodings)