Face recognition is a crucial security application. Through this project, a very basic form of face recognition has been implemented using the Haar Cascades Classifier, openCV & K-Nearest Neighbors Algorithm.
1. Importing libraries
2. Create some data for classification
3. Write the kNN workflow
4. Finally, run knn on the data and observe results
- Python 3 and OpenCv
- Numpy
- Run generating selfie training face_data_collection.py.The script will open a camera window.Stand in front of the camera until recording of the face is completed.Input the person's name. Press q after having enough samples.
- The default file where the features are stored is name.npy.
- Run the Building face_recognition.py file!