Face recognition is the general task of identifying and verifying people from photographs of their face.This is a ready to use face recognition code using vggface2. The VGGFace refers to a series of models developed for face recognition and demonstrated on benchmark computer vision datasets by members of the Visual Geometry Group (VGG) at the University of Oxford.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
git clone https://github.com/aaronpp65/face-recognition-vggface2.git
What things you need to install and how to install them
pip install face_recognition
# Most Recent One (Suggested)
pip install git+https://github.com/rcmalli/keras-vggface.git
# Release Version
pip install keras_vggface
sudo pip install mtcnn
from face_recognizer import FaceRecognizer
import cv2
fce=FaceRecognizer()
# path to the image of face
camera = cv2.imread('/home/phi/Neuroplex/face-recognition-vggface2/mals.jpg')
camera = cv2.cvtColor(camera, cv2.COLOR_BGR2RGB)
# name of the person
fce.add_new_face(camera,'mals')
To run
python add_new_face.py
python main.py
from face_recognizer import FaceRecognizer
fce=FaceRecognizer()
# name of the person to be deleted from the databse
fce.delete_a_face('mals')
To run
python delete_face.py
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details