ShreySatapara / OpenCV_Face_Recognition

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

easy-real-time-face-recognition-python

packages needed opencv numpy pillow

here are three steps for face recognition:

Collecting face data (your face pictures) and labels and save to dataset folder. (code 1) Input face data and labels into model to train a recognition model. (code 2) Open up your webcam to start real time face recognition. (code 3)

Instructions:

1.Download this repository as zip file and unzip it to a folder.

2.Crate two empty folders named 'dataset' and 'trainer' in the above folder.

3.Run the first code, enter number '1' (for first person), then computer will take your face pictures and save into 'dataset' folder. When finish taking pictures, "[INFO] Exiting Program and cleanup stuff" pops up. (3.5. Run the first code again, enter number '2' (for second person), follow the same procedure.)

4.Run the second code, just wait several seconds to train the model.

4.Run the third code, it will open your camera and start real time face recognition.

  1. enjoy!

About


Languages

Language:Python 100.0%