Face Recognition

1 0
  • 0 Collaborators

Face Recognition using KNN algorithm and open cv for python.This is a implementation of knn classifier. ...learn more

Project status: Under Development

Artificial Intelligence

Code Samples [1]

Overview / Usage

Face Recognition using KNN algorithm and open cv for python.This is a implementation of knn classifier.
How it works!
Run record_faces.py on the command line.The script will open a camera window.Stand in front of the camera until recording of the face is completed.
The default file where the features are stored is face_01.npy. You can change the file name if you want to store information of many persons.It stores data in a numpy matrix.
Open the face_recognition.py file and edit your name in the dictionary value corresponding to the number in which your face was stored i.e. for face_01,add your name to '0' value in the names dictionary.
Run the face_recognition.py file!
Accuracy :tada:
1.98.4 (using knn) because of small dataset.
2.Taking distance from webcam and quality of light into consideration it would give 90+ accuracy.

Methodology / Approach

Breakdown of the code for knn classifier
1. Importing libraries
2. Create some data for classification
3. Write the kNN workflow
4. Finally, run knn on the data and observe results

Technologies Used

Dependencies
Python 2.7 and OpenCv

Repository

https://github.com/prashant0598/Face-Recognition

Comments (0)