标签:put get 自我 lse 代码 down span -- target
想获得所有的代码,请下载(来自我的CSDN):
https://download.csdn.net/download/qq_40875849/11292912
主函数:
from recognition import recognition from training import training from datasets import datasets from delFile import del_file def main(): facedict = {} cur_path = r‘./dataset/‘ while True: print(‘*‘ * 31) print(‘‘‘ opencv人脸识别 -------------- 输入1,人脸采集 输入2,人脸训练 输入3,人脸识别 输入d,删除数据 输入q,退出程序 ‘‘‘) print(‘*‘ * 31) num = input("请输入您的操作选择: ") if num == ‘1‘: mydict = datasets() facedict.update(mydict) print(facedict) elif num == ‘2‘: training() elif num == ‘3‘: recognition(facedict) elif num == ‘d‘: del_file(cur_path) elif num == ‘q‘: print("退出程序成功!") break else: print("您输入有误,请重新输入!") if __name__ == ‘__main__‘: main()
标签:put get 自我 lse 代码 down span -- target
原文地址:https://www.cnblogs.com/caiyishuai/p/11146638.html