Skip to content

iphonexplus/FaceRecognition-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FaceRecognition

Webcam face recognition using tensorflow and opencv. The application tries to find faces in the webcam image and match them against images in an id folder using deep neural networks.

Dependencies

  • Pillow
  • OpenCv
  • Scipy
  • Tensorflow

Inspiration

Models, training code and inspriation can be found in the facenet repository. Multi-task Cascaded Convolutional Networks are used for facial and landmark detection while an Inception Resnet is used for ID classification. A direct link to the pretrained Inception Resnet model can be found here.

How to

Get the model from facenet and setup your id folder. The id folder should contain subfolders, each containing images of one person. The subfolders should be named after the person in the folder since this name is used as output when a match is found.

E.g. id folder named "ids" containing subfolders "Adam" and "Eve", each containing images of the respective person. Download the model to a folder named "model" and run "python3 main.py ./model/ ./ids/" to start the program.

Visualization hotkeys:

  • l - toggle facial landmarks
  • b - toggle bounding box
  • i - toggle id
  • f - toggle frames per second

alt text

About

Webcam face recognition using tensorflow and opencv

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%