Python face recognition with OpenCV In progress
- Fork or just clone repository to local machine
- Create virtual environment to keep project files isolated:
py -m venv venvorpython3 -m venv /path/to/new/virtual/environment_Read more about - _ Python Virtual Environments - Activate virtual environment:
On MacOS & Linux:
source env/bin/activateOn Windows:.\venv\Scripts\activate - Pip install requirements.txt:
pip install -r requirements.txt - Run it:
python main.pyorpython3 main.py
You can train program with the help of some of your images. So, program will try to predict who you are each run time. How to tratin?
- Add the folder container images of you to the 'images' folder:
images/madat/1.pngorimages/john/1.jpgorimages/jack/frontal_face.jpgAllowed image types - JPG, PNG
- Run trainer:
python trainer.pyorpython3 trainer.py - After training finishes, just run main program:
python main.pyorpython3 main.py