def eliminar_usuario(): global Known_face_personalHitss, Known_face_bandera train("ClasificadorKNN/train", model_save_path="trained_knn_model.clf", n_neighbors=2) Known_face_personalHitss, Known_face_bandera = getFiles( origin, Known_face_personalHitss, Known_face_bandera)
video_capture.set(3, 1920) video_capture.set(4, 1080) #Inicializando todas la variables a usar is_exit = False Known_face_personalHitss = [] Known_face_bandera = [] known_id_personal = [] face_locations = [] face_encodings = [] face_names = [] conocidos = [] desconocidos = [] process_this_frame = True guessID = 1 Known_face_personalHitss, Known_face_bandera = getFiles( origin, Known_face_personalHitss, Known_face_bandera) style1 = xlwt.easyxf(num_format_str='HH-DD-MM-YY') wb = xlwt.Workbook() ws = wb.add_sheet('A Test Sheet') i = 0 bandera_mañana = 0 bandera_tarde = 0 bandera_noche = 0 bandera_enviado = 0 old = 5 * 60 #hilo_train=threading.Thread(target=train,args=("ClasificadorKNN/train","trained_knn_model.clf", 1,None,None,)) #hilo_train.start() train("ClasificadorKNN/train", model_save_path="trained_knn_model.clf", n_neighbors=2) while True: