Face Recognition, Flask, Python, ML, Knn.
= cv2.resize(img, (50, 50)) faces.append(resized_face.ravel()) labels.append(user) faces = np.array(faces) knn = KNeighborsClassifier(n_neighbors=5) knn.fit(faces,labels) joblib.dump(knn,'static/face_recognition_model.pkl') #### Extract info from today's attendance file in attendance folder def