Face Recognition, Flask, Python, ML, Knn.
#### A function which trains the model on all the faces available in faces folder def train_model(): faces = [] labels = [] userlist = os.listdir('static/faces') for user in userlist: for imgname in os.listdir(f'static/faces/{user}'): img = cv2.imread(f'static/faces/{user}/{imgname}') resized_face