
Learn how to build a face recognition attendance system in Python with OpenCV, including training user faces, managing datasets, registering attendance via webcam, and viewing attendance reports.
Install python by downloading the official python.org installer, choosing python 3.9.5 for Windows 64-bit (and other os options), add python to path, and complete the setup.
Install pyqt5 and pyqt5-tools via an administrator command prompt using pip, ensuring internet access. This setup prepares form design for the complete face recognition attendance project.
Install the OpenCV library in your project by running pip install OpenCV python in the command prompt. Observe the system status once it is installed.
Install visual studio code on windows, apply a dark theme, install the python extension, create a test.py that prints hello world, and verify python --version shows 3.9.5.
Create a desktop shortcut to the Qt Designer by locating the designer executable in the Python site-packages bin folder and sending it to the desktop to design forms.
Install and open the SQLite browser to view the SQLite database for the project, following Windows 64-bit setup steps from sqlite browser.org via Chrome.
Design a login form for a face recognition attendance app using Python OpenCV, featuring a tabbed interface, a custom background, login and password fields with hover styles and login button.
designs the main form by adding a background image, creating and styling four buttons with hover effects, and configuring object names and stylesheets to navigate training, attendance, reports, and logout.
Design a training form for face recognition attendance by configuring labels, images, inputs, and styles, and add training name and count fields along with start and back buttons.
Design a face recognition attendance entry form with background, labels, and a record button in Python OpenCV; show current status and a face recognition window that records attendance.
Design an attendance reports form with labels, a heading, a date selector, a table widget, and a back button, then hide tabs with a frame until password access.
Connect the ui file with python by creating a main app class, loading the interface, and wiring libraries like sqlite3, cv2, and numpy, then run the project to display login.
Define a class login function that reads password from text field, validates it, clears the field, and on failure shows an invalid password message, while on success opens main form.
Develop and connect a logout function and close window procedures in a Python OpenCV face recognition app, wiring buttons for login, logout, and navigation to training, attendance, and reports.
Develop and wire a multi-tab interface for a face recognition attendance system by implementing button links for training, attendance entry, and reports, with shared navigation functions and tab indices.
Hello Students
Welcome to the course Complete Face Recognition attendance software using Python, Pyqt5, OpenCv and Machine Learning using Qt Designer with SQLite database
In this course you will learn how to create a complete software to implement face recognition attendance system for a company or for a business to record daily attendance.
First you will learn how to install the required software for our project
Python
Pyqt5
Pyqt5-tools
Open Cv
Vs Code
Db Browser
Then you will learn how to create beautiful interfaces for the following process
Login process
Training process
Face recognition attendance entry process
Reports process
In the interface creation process you will learn how to create controls for our requirements
QLabel
QTabWidget
QPushButton
QLineEdit
QTableWidget
QDateEdit
QFrame
The main process you will learn while designing the forms
How to provide images
How to fit images properly with QLabel
How to capture passwords using Python GUI window.
How to provide styles to all controls
How to provide hover effects to controls in the qt designer.
Connect Qt Designer ui file with Python
Then you will learn how to connect python code with pyqt5 designed GUI using QT Designer.
Create and connect SQLite
Then you will learn how to create sqlite3 database and tables using python code and check the database with db browser.
These are the following modules we will develop in this project.
1. Login Module
In this module, the admin will enter the password to enter into the system. The the python code will check if the entered password is correct or not. If it is correct, it will open the next form. We will use python if condition and user defined functions to check login.
2. Training Module
In this module, the admin will use haarcascade_frontalface_default.xml file to detect the human face shown in the webcam. The camera is capture is created using OpenCv. The captured image contverted to gray scale and Cascade Classifier algorithm will detect any face available in the captured image. If face is available, it will automatically create a directory and store the faces in 1.png, 2.png.... like that till the given number for training. If the face is not detected, then the system will not save the image file.
3. Attendance Module
The member will show their face in the web cam. Now the system will create a LBPHFaceRecognizer model using cv2 library and this model will be trained using the existing dataset we already created image and label set. Then this model will predict with the web cam face and if the person is there in the trained database, it will record the attendance for the person. The attendance will be recorded only if the person is showing their face first time in the current date. If the person is showing their face more than one time, the system will not record the attendance. If a new person is showing their face, it will show unknown person message.
4. Reports Module
In the reports module, the system will show the attendance records of all the day. The admin can select a particular date from the date select control, the system will show the attendance for the selected date.
By doing this course, you will learn how to create a complete python GUI project using face recognition of OpenCV Library and use LBPHFaceRecognizer model. You will also learn how to create database, tables and insert records from the user interface. You will learn how to generate reports from the database and how to connect GUI and python code.
Thank you for your interest in this course...
I will see you in the course...