For Command Line Interface Version, click here (It runs faster than this, but it is a bit tricky to run it)
- Check Camera 📷
- Capture Faces
- Train Faces
- Recognize Faces & Attendance
- Automatic Email 📧
Build With -
- Python 3.8
Module Used -
All The Module are the Latest Version.
- OpenCV Contrib 4.0.1
- Pillow
- Numpy
- Pandas
- Shutil
- CSV
- yagmail
- PySimpleGUI
Face Recognition Algorithms -
- Haar Cascade
- LBPH (Local Binary Pattern Histogram)
Software Used -
- Pycharm 2020.2
1. Install PyCharm 2020.2 from here : https://www.jetbrains.com/pycharm/download/
First Download or Clone the Project on Your Local Machine.To download the project from github press Download Zip
or
You can clone the project with git bash.To clone the project using git bash first open the git bash and write the following code
git clone https://github.com/AdeetyaU/Face-Recognition-GUI.git
python -m venv env
Then activate the enviroment using the code below (Works in CMD as well as PyCharm)
.\env\Scripts\activate
[ PS: If you have any issues with your venv, check this article then: (https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/) ]
After creating the enviroment on your project let's install the necessary packages.
You simply need to run the following command in terminal, and it automatically installs the required packages for you:
py setup.py
If you get an error message, you need to manually install the package:
To install those package open the terminal or command line and paste the code from below
pip install opencv-contrib-python
pip install numpy
pip install pandas
pip install Pillow
pip install pytest-shutil
pip install python-csv
pip install yagmail
pip install pysimplegui
After creating the enviroment and installing the packages, open the terminal to run the program. Using the code below.
py main.py
- Click on Capture Face
- Enter Id and Name and press Submit
- Look into the Camera until the progress bar is completely. Then it will automatically close.
- Then click on Train Images. This is important to do; otherwise, it will result in multiple errors
- Once the training is complete, you can now click on Attendance Mode
- Once attendance is complete, just click back to menu to quit and the Attendance will be saved!
- (Optional) You can also auto-email this to a person, just don't forget to initially add your password and email id to the python file!
Answer: Press the 'x' key or press the respective buttons below them
Answer: A few commands in the program are Windows-Centric; however, I have not tested them yet in other Operating Systems. The CLI version of this works in both Linux and Mac. You can try it here!
Answer: Try searching for unofficial dependencies and download them, then run CMD on that. Although this scenario is quite rare.
Answer: It is saved in the Attendance folder in a CSV format, you can open it using File > Open Attendance Folder in the GUI
Answer: Check the lower left of your screen. Click on the Terminal button to open it up.
Answer: This is written in python, therefore compiling it will take sometime depending on your computer's CPU speed!
Answer: In PyCharm, click on File > Open Project > select Face-Recognition-Attendance-Program
Answer: No, however I highly recommend it.
Answer: No it is not necessary, you can use VSCODE; however, I highly suggest using PyCharm for best results.
Answer: Make a pull request or raise an issue, and I'll get back to you as soon as possible! 😃
Thanks to KMHMubin for the initial source code ! This is an updated version of my CLI based project with the addition of a GUI for an easier accessibility and better looking interface!
Making the loading time shorter 😲