Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

A project to detect and recognize faces from live webcams by comparing with images in database efficiently, by using the Computer Vision library OpenCV

License

Notifications You must be signed in to change notification settings

GokulNC/OpenCV-Facial-Detection-and-Recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facial Recognition System

(Using OpenCV in Python)

A project to detect and recognize faces from live webcams by comparing with images in database efficiently, by using the Computer Vision library OpenCV..

Requirements


Usage


  • To capture images from webcam:
python photo.py
#Image will be saved as name.time.png
  • To train the model:
python Train_Images.py
  • To perform facial recognition using webcam:
python Recognizer.py webcam

Note:

  • Edit the configs.py file as you see fit for your datasets.
  • You may put the images to train in the images_db folder, under the general format person_name.anything.png
  • (Make sure each there are atleast 3 pictures of each person in different angles for better results)
  • The Train_Images.py script will output the trained model face_rec_saved_model.yaml, which will be used by Recognizer.py for recognition.

References:

http://docs.opencv.org/2.4/modules/objdetect/doc/cascade_classification.html http://docs.opencv.org/2.4/modules/contrib/doc/facerec/facerec_tutorial.html https://realpython.com/blog/python/face-detection-in-python-using-a-webcam/ http://hanzratech.in/2015/02/03/face-recognition-using-opencv.html

Feel free to contribute by forking and sending PR 😉

About

A project to detect and recognize faces from live webcams by comparing with images in database efficiently, by using the Computer Vision library OpenCV

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages