Foundation for our Project: https://github.com/Mjrovai/OpenCV-Face-Recognition
All tests were ran using Python 3.9. Consider updating or downgrading your version of Python if you are unable to run the application properly.
Python Packages:
numpy
Pillow
opencv-python
opencv-contrib-python
tkinter (Included with Python 3.1+)
For your convenience, a batch file is included to install the packages onto your system. Please make sure that you have Python and Pip installed on your device.
To run the application, you perform the following steps:
1) Delete the "Delete_This_File.txt" file located in the Images folder
2) Navigate to the Scripts folder
3) Open a terminal or command prompt
4) Run "python app.py" or "py app.py" depending on how you normally run python scripts
- If a camera is not connected, the program will not run properly.
5) A Graphical User Interface named "CS-472-Project" will appear with a text box and
6) Type your name in the textbox
7) Click the "Update Dataset" button
8) Click the "Train Data" button
- The program will prompt you to train the data before running the recognizer
- The application is trained when the command prompt or terminal displays "x faces were trained. Exiting program." (where x is the number of individuals)
9) Click the "Recognize" button
10) Enjoy the application
11) To exit the application, press the "X" button on the Graphical User Interface or hit the "Esc" key on your keyboard