Skip to content

Face recognition from a picture or web cam video with face recognition module in python

License

Notifications You must be signed in to change notification settings

lechugalf/face-id

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Face ID

Face recognition from a picture or webcam video using the face recognition module in python

Getting Started

IdentifyFaces.py compares found faces on an image with faces previously stored in a directory

Prerequisites

IdentifyFaces.py uses Python 2.7 and the packages below

  • face_recognition 1.2
  • opencv-python 3.4

You can install this packages using pip

sudo pip install face_recognition
sudo pip install opencv-python

visit https://github.com/ageitgey/face_recognition for more information about install face recognition module.

Installing

  1. Clone this repository into a directory of your choice.
git clone https://github.com/lechugalf/face-id.git

If you are not familiar with Git and GitHub, you can simply download the zip file of the repository at the top of the main repository page.

Then, move to the directory created by the clone/zip file:

cd face-id

Run IdentifyFaces.py

In order to select the images with which you will work create a folder with all images of recognized faces, name the images as you want to show them in the result. run IdentifyFaces.py through the terminal and pass the image to identify as the first argument and the directory of you recognized faces as the second argument.

cd IdentifyFaces
python IdentifyFaces.py image-to-identify directory-of-known-recognized-faces
Run Test

You can test how works running IdentifyFaces.py as follow

python IdentifyFaces.py test1.jpg faces/

Run IdentifyFacesWebcam.py

You have pass as the first argument the folder with de images of the faces to recognize in the webcam

cd IdentifyFacesWebcam
python IdentifyFacesWebcam.py directory-of-known-recognized-faces
Run Test

You can test how works running IdentifyFacesWebcam.py as follow

python IdentifyFacesWebcam.py faces/

Authors

  • Alfonso Lechuga - Initial work - lechugalf
  • Visit face recognition to know more about the creators for face recognition module

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Releases

No releases published

Packages

No packages published

Languages