numpy
opencv-python
opencv-contrib-python
pickle
requests
in command line:
pip install numpy
pip install opencv-python
pip install opencv-contrib-python
pip install pickle
pip install requests
1.Put some images in TestImages folder that we want to predict in tester.py
2.Put the Images of training for the classifier in trainingImages folder. If we want to train clasifier to recognize multiple people then
we can add the images of each person in folder and add the name of each person for each folder.
3. then Run
*python face_rec.py
-Note if you have trainingData.yml and faceLabels.pickle then you can run tester.py directly.
*python tester.py
- if there are any recognized images will show the test image with detected faces and names, print the personal information which got from official websites in cmd and finally open the web browser with the personal information.
- if there are no any recognized images will show the test image and print there is no any recognized images!!! in cmd