Skip to content

Program of facial recognition based on Pytorch and CV2 python library.

Notifications You must be signed in to change notification settings

RMPR/facial_recognition

 
 

Repository files navigation

Facial Recognition

This is a program created to train a model in order to recognize some people on an image. This model will be trained from photos of these people, and after that it will be able to recognize any of these people on any image. This program uses Pytorch to create his neural network and python bindings of OpenCV (cv2) for image processing.

How do we train the model ?

First of all, we should add images of heads of these people in the folder images/train. Each group of photos ( preferably the photos of head) of each person must be placed in a folder named after this person's name. After that, we must train our model by executing this command in the project root

   python3 trainer.py

How do we use the model for recognition ?

After that our model be trained, we must execute this command in the project root

   python3 main.py path/to/image.jpg

Where path/to/image.jpg is the path to the image that we want to test.

Example

Markdown Monster icon

About

Program of facial recognition based on Pytorch and CV2 python library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%