Thanks to visit codestin.com
Credit goes to github.com

Skip to content

danibt656/face-recognition

Repository files navigation

face recognition

Just a couple of tests for trying to make a facial recognition program that correctly classifies different people's faces

Before you download, be advised! This repo contains the training image dataset, which is composed of more than 50 MBs of face pictures.

It currently looks like this:

And its performance in terms of predictions' confidence is this:

(as you can see, it gets a little bit confused :^])

Installation

Before anything can run, you need to create a Python virtual environment & install the dependencies:

$ python -m venv env
$ pip install -r requirements.txt

Note: for installing the dlib library, follow this tutorial or this article.

Usage

Firstly, run the training program within this repo, locating all faces inside the faces/ directory, and naming each person's faces folder accordingly (just immitate the given folder structure):

$ python faces-train.py

Then, go ahead and run the webcam-capture recognizer:

$ python cv.py

You can get statistic graphs generated after you quit the program if you run it with the -p/--plot flag:

$ python cv.py -p

(a full list of options can be obtained with the -h/--help flag)

About

Messing around with OpenCV & facial detection algorithms

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors