Real-time face recognition project with Open-CV and Python
- This is a real-time face recognition system which can detect Face and also it can recognise Face. (Recognise only when the sample data of that face has already in Data folder)
- There are two Python file.
This python file collects data and stores it in data folder. Capture atleast 20 sample data for better performance.
- haarcascade_frontalface_alt.xml used for face detection.
This pyhton file detect and recognise face.
- I have used KNN(K-Nearest Neighbors) Algorithm as Recognizer.
-
- I have used Euclidean Distance for distance metric of continuous variables.
- haarcascade_frontalface_alt.xml used for face detection.
- Phase 1: Data gathering
-
- Gather face data(images) of the person to be identified.
-
- Stores the data into dataset(data folder).
- Phase 2: Train the recognizer
-
- Feed the data and id of each face to the recognizer so it can learn.
- Phase 3: Recognition
-
- Recognize faces.
- Python 3.6 or higher version must be installed in the System where you are running.
- OpenCV need to installed.
- Need atleast one configured camera.
- KNN Algorithm: https://en.wikipedia.org/wiki/K-nearest_neighbors_algorithm#Parameter_selection
- OpenCV: https://opencv.org/
- haarcascade_classifier: https://docs.opencv.org/3.4/db/d28/tutorial_cascade_classifier.html