Project Report
Project Report
This project uses Haar Cascade Algorithm for development and evaluation of face
recognition attendance management system. The system addresses the need for a
streamlined and efficient attendance recording process in educational institutions or
workplaces.
Beyond the core functionality, the report explores the integration challenges of
incorporating this technology with existing infrastructure. It delves into the challenges
encountered during development, such as ensuring compatibility with existing database
systems and access control mechanisms. The report also proposes solutions to improve
system reliability and efficiency, such as implementing data encryption techniques to
safeguard sensitive student or employee information and optimizing the system's
performance to minimize processing time and enhance real-time functionality. This
discussion provides valuable insights for future implementations of facial recognition
attendance management systems, paving the way for wider adoption of this technology
and its potential benefits.
Contents
Page No.
Abstract i
List of Figures ii
List of Abbreviations iii
Chapter -1: Introduction 01
1.1 Overview 01
1.2 Motivation 03
1.3 Problem Definition 03
1.4 Objectives 03
Chapter -2: Literature Review 04
2.1 Overview 04
2.12 Conclusion drawn from literature review 04
Chapter -3: Proposed System 08
Chapter -4: Design and Implementation 13
4.1 Frontend Development 13
4.2 User Interface (UI) 16
4.3 Backend Integration 18
4.4 User Authentication and Account Management 19
Chapter -5: Result and Discussion 22
5.1 Results 22
5.2 Discussion 23
Chapter -6: Conclusions 24
6.1 Conclusions 24
6.2 Future Work 24
References 26
Dissemination of Work 27
Plagiarism Report (using Turnitin software ) 30
List of Figures
Figure Name
Figure No. Image Classifier Page No.
Figure 3.1 08
Feature Representation
Figure 3.2 08
Haar Features
Figure 3.3 09
Proposed System
Figure 3.4 11
Frontend Implementation
Figure 4.1.1 Files 13
Admin Portal
Figure 4.1.2 Implementation 14
Student Registration
Figure 4.1.3 15
Teachers Profile
Figure 4.2.1 16
Student Profile
Figure 4.2.2 18
Captured Images for
Figure 4.3.1 Training 19
Administration Login
Figure 4.4.1 21
Administration
Figure 4.4.2 21
Attendance History
Figure 5.1.1 22
Students Record
Figure 5.1.2 22
ii
List of Abbreviations
Abbreviation Descriptions
ML Machine Learning
HCA Haar Cascade Algorithm
XML Extensible Markup Language
FPS Frames Per Second
CPU CentralProcessing Unit
GPU Graphics Processing Unit
RAM Random Access Memory
NLP Natural Language Processing
UI User Interface
UX User Experience
CV Computer Vision
SSL Secure Sockets Layer
JSON JavaScript Object Notation
SQL Structured Query Language
PCA Principal Component Analysis
LBPH Local Binary Pattern Histogram
CNN Convolutional Neural Network
API Application Programming Interface
iii
CHAPTER 01
INTRODUCTION
Project Structure
```plaintext
Face-Recognition-Attendance-System/
├── database/
│ ├── attendance-db.sql # SQL file to set up
the database
│ └── database_connection.php # Database connection
script
├── models/
│ └── face-api-models.js # JavaScript models for
Face API
├── resources/
│ ├── assets/
│ │ ├── css/ # CSS files
│ │ └── javascript/ # JavaScript files
│ ├── images/ # Images directory
│ ├── labels/ # Stored images of
registered students
│ ├── lib/
│ │ └── global-functions.php # Global PHP functions
│ ├── pages/
│ │ ├── admin/ # Admin-specific pages
│ │ ├── lecturer/ # Lecturer-specific
pages
│ │ └── login.php # Login page
├── index.php # Main entry point for
all pages
├── .htaccess # Redirect rules
└── README.md # Project documentation
Chapter1 - Introduction
INTRODUCTION
1.1 Overview:
The "Face Recognition Attendance System" project stands as a transformative endeavor,
poised at the intersection of technological innovation and educational enhancement. In
response to the longstanding challenges faced by educational institutions in managing
attendance, this project endeavors to revolutionize traditional methods by harnessing
the power of advanced facial recognition technology and machine learning algorithms.
Delving into the intricacies of attendance management reveals a landscape fraught with
inefficiencies and shortcomings. From the cumbersome manual processes of paper-
based attendance sheets to the limitations of electronic systems, educators have long
grappled with the complexities of accurately tracking student attendance. These
challenges are exacerbated in large classrooms or lecture halls, where the sheer volume
of students makes manual data entry a time-consuming and error-prone task.
Recognizing the imperative for a more streamlined and reliable solution, the project
embarks on a mission to reimagine attendance management from the ground up. At its
heart lies the Haar Cascade Classifier, a sophisticated algorithm renowned for its
prowess in facial recognition tasks. By leveraging this technology, coupled with a robust
backend infrastructure, the project aims to create an automated attendance capture
system that transcends the limitations of traditional methods.
The significance of this endeavor extends far beyond the realm of attendance tracking.
At its core, the project represents a convergence of cutting-edge technology and
pedagogical innovation, with the potential to reshape the educational landscape. By
automating the attendance capture process, educators are liberated from the burdensome
task of manual data entry, allowing them to redirect their time and energy towards more
impactful endeavors such as student engagement and academic support. Furthermore,
the project's dedication to accuracy and reliability serves as a cornerstone in ensuring
the integrity of attendance records within educational institutions. By implementing
advanced facial recognition technology and stringent verification protocols, the system
mitigates the potential for errors and fraudulent activities, thereby safeguarding the
authenticity of attendance data.
In an educational landscape where data-driven decision-making is increasingly
paramount, the system's ability to provide reliable attendance records empowers
educators with a solid foundation for informed analysis and strategic planning. Armed
with accurate attendance data, institutions can identify trends and patterns in student
attendance, enabling them to tailor interventions and support mechanisms to address
specific needs effectively.
The real-time insights offered by the system serve as a powerful tool for proactive
intervention and support. By promptly identifying instances of absenteeism or irregular
attendance patterns, educators can intervene swiftly to provide necessary assistance and
resources to students in need. Whether through targeted interventions, counseling
sessions, or additional academic support, the system enables institutions to foster a
supportive environment conducive to student success.
Moreover, the system's capacity for real-time monitoring allows educators to track the
effectiveness of their interventions and initiatives over time. By correlating attendance
data with academic performance metrics, institutions can gain valuable insights into the
impact of various interventions on student outcomes. This data-driven approach enables
educators to refine and optimize their strategies, ensuring that resources are allocated
effectively to support student success.
In essence, the project's commitment to accuracy, reliability, and real-time insights
serves as a catalyst for enhancing student engagement, retention, and success within
educational institutions. By leveraging technology to streamline attendance
management processes and empower educators with actionable data, the system
contributes to the overarching goal of creating a supportive and conducive learning
environment for all students.
In addition to its immediate benefits, the project lays the groundwork for future
innovation and expansion. By designing a scalable and adaptable solution, the project
ensures that educational institutions can seamlessly integrate the system into their
existing workflows and infrastructure. Furthermore, ongoing research and development
efforts promise to enhance the system's capabilities and extend its reach to new domains
and applications.
In summary, the "Face Recognition Attendance System" project represents a pivotal step
towards reimagining attendance management in educational institutions. Through its
innovative approach, unwavering commitment to excellence, and dedication to
empowering educators, the project aims to usher in a new era of efficiency,
effectiveness, and student success.
2
Chapter1 - Introduction
1.2 Motivation:
The motivation behind this project stems from the longstanding challenges faced by
educational institutions in managing attendance effectively. Traditional methods, such
as manual paper-based systems or basic electronic methods, are not only time-
consuming but also prone to inaccuracies and fraud. With classrooms becoming
increasingly larger, accurately recording the attendance of numerous students becomes
a tedious task for teachers. Furthermore, the lack of real-time insights or analytics
hampers institutions' ability to monitor attendance trends effectively.
1.4 Objectives:
1. Enhance efficiency by automating attendance recording processes.
2. Ensure accuracy and reliability through advanced facial recognition technology.
3. Implement robust security measures to protect attendance data.
4. Design a user-friendly system that seamlessly integrates into existing
institutional workflows.
LITERATURE REVIEW
2.1 Overview
Automated attendance systems using computer vision are gaining traction due to their
efficiency and accuracy. These systems leverage facial recognition technology to
identify individuals entering a classroom or workplace, eliminating the possibility of
proxy attendance and streamlining administrative processes. The core technology
behind these systems often integrates OpenCV, Dlib libraries and Principal Component
Analysis (PCA), achieving impressive accuracy rates between 75% and 100%. This
trend aligns with the growing adoption of face recognition in various sectors, including
education, social networking, finance, and law enforcement.
Research in this field actively explores the potential of facial recognition for attendance
management. Shashank Joshi and his team proposed a system using facial recognition
for marking attendance, effectively automating the process. Other studies have
implemented additional features such as audio output for attendance confirmation,
gender classification, and GSM notifications for parents or guardians. These studies
collectively highlight the increasing interest in facial recognition technology for
attendance systems, demonstrating its potential to improve efficiency and accuracy
across various educational and organizational settings.
The study elucidates the significance of the face as a primary distinguishing feature and
highlights the evolution of biometric identification methods, including face recognition.
The aims to create a functional model capable of identifying and recognizing faces
images of students within a class environment. This particular initiative aligns with the
growing trend of integrating face recognition technologies in various sectors, including
social networking, finance, and law enforcement. The survey underscore the practical
applications of face recognition systems and emphasis their potential to enhance
classroom management processes, particularly in educational institutions like the
Technical Informatics College of Akre. Overall, the rising prominence of face
recognition technology plays a vital role in shaping the future of attendance management
systems and offers a glimpse into the innovative future of educational institutions
worldwide! The incorporation of biometric identification methods represents a
significant step forward in revolutionizing traditional attendance tracking methods. By
leveraging face recognition technology, educational institutions can streamline
attendance tracking, reducing administrative burdens and improving accuracy. This
initiative reflects a broader shift towards innovative solutions in education, ensuring a
more efficient and secure learning environment for students and staff alike. [2]
Shashank Joshi his team discussed about the development of a face detect Attendance
model using ML and Deep Learn. They specifically adressed the inefficiencies of
traditional attendance methods and proposed a system that leverages facial recognition
technology for automated attendance marking. The system captures live images of
students by using a webcam, employs the Vola-Jone Algorithm for face detect, and
preprocesses photos before extracting features. Team used LBPH algo. and (CNN) for
features extraction , resulting in high accuracy rates. This proposed system aims to
streamline attendance management processes, reduce time wastage, and eliminating
manual errors. The literature survey encompasses various research efforts in the field of
face detect-based attendance systems. Poornima et al. implemented an audio output and
gender classification along with attendance monitoring using facial recognition.
Kennedy Okokpujie et al. developed a system with notifications sent via GSM, while
Jeevan M et al. concentrated on recognizing faces of individuals in motion. Furthermore,
SudhaNarang et al. came up with a model for student attendance monitoring using
OpenCV and compared different face recognition algorithms. These studies collectively
demonstrate the increasing interest in facial recognition technology for attendance
management in educational settings. [3]
The research in the field of face recognition utilizes the HCA and reveals a growing
interest in leveraging this technology for various applications in interaction of human
and machines Shahaad Sallh Alii, Jamla Hari Al' Ame, and Thekri Abas focuses on
detecting human faces from images with normal background using HCA. This algorithm
comprises of three main components: Haar like filters, Internal Images, and the
AdaBoost classification. Study focuses on understanding the impact of these
components on the overall effectiveness of face algorithm. Many studies have been
explored the effectiveness of the Haar cascade algorithm in face detection. The
integration of OpenCV library and Python programming facilitates experimentation and
implementation of the proposed method. This combination is crucial for achieving
accurate results in the face detection. [4]
Bharath Tej Chinimilli and his team conducted a detailed study on attendance systems,
mainly focusing on face recognition-based solutions. They advocate for the utilization
of the Local Binary Pattern Histogram (LBPH) algorithm, known for its robustness
against grayscale transformations. Suraj Raj and Saikat Basu delve into the
advancements face identification, particularly in context of attendance automation,
conducting a comparative study among various works, highlighting the importance of
cost-effective solutions with high accuracy. The research underscores the ongoing
demand for advancements in face recognition technology to address the requirements
of modern attendance management systems. However, challenges and limitations still
prevail in this field. [5]
Evangelos Michos and his colleagues exploration the enhancement of Haar Cascading
algorithm for detection of face in their paper presented at the 24th Pan-Hellenic
informative Conference The study sheds light on potential of extending the Haar
Cascading algo. for improved face detect performance, highlighting the significance of
considering lighting conditions in algorithm design. Additionally, it providing the
valuable insights into the computational costs associated with different filter options,
contributing to the ongoing efforts to enhance face recognition algorithms. [6]
Ruth Ramya Kal and her team have presented a study on the Haar Cascade algorithm
deployment for genuine-time face detection, published by IEEE. The document
addresses the challenging task of human face identification in image processing. Their
methodology involves the Rough Haar technique alongside three additional weak
classifiers to detect human faces. The Rough Haar classifier is utilized first to
recognizing images with human faces. Weak classifiers are then used for extracting
features like skin color histogram organization, eye location, and mouth identification.
These weak classifiers are specifically accountable for detecting robots skin tone
histograam analysis and identifying eyes and mouth regions within human faces. The
proposed method is carried out utilizing OpenCV, an open-source computer library. [7]
Overall, this study contributes significantly to the image processing field by providing
a robust method for real-time face detection, making use of the Haar Cascade algorithm
and supplementary weak classifier. Suraj Raj and Saikat Basu delve into the
advancements face identification, particularly in context of attendance automation,
conducting a comparative study among various works, highlighting the importance of
cost-effective solutions with high accuracy. The research underscores the ongoing
demand for advancements in face recognition technology to address the requirements
of modern attendance management systems. However, challenges and limitations still
prevail in this field. [8]
PROPOSED SYSTEM
Object Detection using Haar feature-based cascade classifiers is one of the effective
method proposed by Paul Viola and Michael Jones in the 2001 paper, "Rapid Object
Detection using a Boosted Cascade of Simple Features". It is based on machine learning
which works on positive and negative images.
Now all possible sizes and locations of each kernel are used to calculate plenty of
features. For each feature calculation, we need to find the sum of the pixels under the
white and black rectangles. To solve this, they introduced the integral images. It
simplifies calculation of the sum of the pixels, how large may be the number of pixels,
to an operation involving just four pixels.
But among all these features we calculated, most of them are irrelevant. For example,
consider the image below. Top row shows two good features. The first feature selected
seems to focus on the property that the region of the eyes is often darker than the region
of the nose and cheeks. The second feature selected relies on the property that the eyes
are darker than the bridge of the nose. But the same windows applying on cheeks or any
other place is irrelevant. So how do we select the best features out of 160000+ features?
It is achieved by Adaboost.
For this, we apply each and every feature on all the training images. For each feature, it
finds the best threshold which will classify the faces to positive and negative. But
obviously, there will be errors or misclassifications. We select the features with
minimum error rate, which means they are the features that best classifies the face and
non-face images. (The process is not as simple as this. Each image is given an equal
weight in the beginning. After each classification, weights of misclassified images are
increased. Then again same process is done. New error rates are calculated. Also new
weights. The process is continued until required accuracy or error rate is achieved or
required number of features are found).
Final classifier is a weighted sum of these weak classifiers. It is called weak because it
alone can't classify the image, but together with others forms a strong classifier. The
paper says even 200 features provide detection with 95% accuracy. Their final setup had
So now you take an image. Take each 24x24 window. Apply 6000 features to it. Check
if it is face or not.
In an image, most of the image region is non-face region. So it is a better idea to have a
simple method to check if a window is not a face region. If it is not, discard it in a single
shot. Don't process it again. Instead focus on region where there can be a face. This way,
we can find more time to check a possible face region.
For this they introduced the concept of Cascade of Classifiers. Instead of applying all
the 6000 features on a window, group the features into different stages of classifiers and
apply one-by-one. (Normally first few stages will contain very less number of features).
If a window fails the first stage, discard it. We don't consider remaining features on it.
If it passes, apply the second stage of features and continue the process. The window
which passes all stages is a face region.
In this web project of face recognition attendance management system, the frontend
typically includes everything that the user interacts with directly. This encompasses the
user interface, design, and user experience components. We want users to be able to
login, sign up, and see their results without any trouble. To do this, we have written
special code that works in their web browser.
A key focus of our frontend design philosophy is to ensure accessibility and inclusivity
for all users. We adhere to web accessibility standards, incorporating features such as
keyboard navigation support, screen reader compatibility, and semantic HTML markup
to ensure that our application is usable by individuals of all abilities.
The frontend architecture of our system is designed for scalability and maintainability,
allowing for seamless integration of new features and enhancements over time. By
leveraging component-based architectures and modular design patterns, we promote
code reusability and facilitate efficient collaboration among development teams.
In our pursuit of creating a visually appealing and user-friendly interface, we pay special
attention to the user onboarding experience. The signup and registration processes are
streamlined and intuitive, guiding users through the necessary steps with clarity and
simplicity. Similarly, the login mechanism is designed to prioritize security while
minimizing friction for authenticated users.
User Authentication and Account Management play a pivotal role in ensuring the
security and personalization of the face recognition attendance management system.
Our system incorporates robust features to facilitate seamless user registration,
authentication, and account management for both students and faculty members.
Starting with the user registration process, students and faculty members are provided
with a user-friendly signup/registration page where they can input necessary details such
as their name, email ID, and mobile number. This streamlined registration process aims
to minimize friction and ensure that users can onboard onto the system effortlessly.
Upon successful registration, each user is assigned a unique user ID and password,
which serves as their credentials for accessing the system securely.
The user authentication process is designed to prioritize data security and integrity.
When users attempt to log in to the system, they are required to enter their assigned user
ID and password. Our system employs robust authentication protocols to validate user
credentials and authenticate user identities securely. This ensures that only authorized
users with valid credentials can gain access to the system's functionalities and data.
5.1 Results :
The evaluation of the face recognition automatic attendance system yielded promising
results, indicating its effectiveness in accurately identifying and marking students'
attendance. Utilizing a dataset comprising 200 images of students captured under
various lighting conditions and facial expressions, the system demonstrated high
accuracy rates, typically exceeding 87%. This level of accuracy remained consistent
across different angles and lighting conditions, underscoring the system's reliability in
real-world scenarios.
5.2 Discussion:
The results of our evaluation highlight the significant potential of the face recognition
automatic attendance system in revolutionizing attendance management processes in
educational institutions. By leveraging advanced computer vision algorithms, the
system offers a reliable and efficient solution for accurately recording student
attendance in real-time.
The high accuracy rates achieved by the system underscore its reliability in diverse
lighting conditions and facial expressions. This level of accuracy is crucial for ensuring
the integrity of attendance records and minimizing errors that may arise from manual
data entry or traditional attendance methods.
The robustness of the system, as evidenced by consistent performance across multiple
iterations of cross-validation, instills confidence in its reliability and consistency. This
robustness is particularly important in educational settings where attendance
management is a critical aspect of monitoring student engagement and participation.
Comparative analysis with traditional attendance methods and existing face recognition
algorithms further emphasizes the superiority of our system. Its efficiency and accuracy
offer significant advantages over manual methods, saving time and resources while
ensuring accurate attendance recording.
CONCLUSION
6.1 Conclusion:
In summation, our project represents a significant leap forward in the realm of
attendance management systems with the creation of an Automatic Face Recognition
Attendance Management System. By harnessing the power of sophisticated
technologies such as the Haar cascade classifier and frontal facial recognition algorithm,
we have successfully showcased the system's robust capabilities in detecting and
recognizing individual students' faces from video frames. This achievement underscores
a notable advancement in attendance tracking technology, particularly within
educational institutions, where accurate and efficient attendance recording is
paramount.
Throughout the intricate process of implementation, we encountered and navigated
through a myriad of challenges, ranging from variations in lighting conditions to facial
occlusions. However, through our relentless pursuit of innovation and problem-
solving, we seamlessly integrated advanced image processing techniques into the
system. These techniques not only bolstered the system's accuracy and reliability but
also ensured consistent and precise attendance recording across diverse environmental
conditions. Despite the remarkable strides we've made, our project acknowledges that
there is always room for enhancement and refinement. Looking ahead, future iterations
of the system will undoubtedly focus on fine-tuning the underlying algorithms to
further elevate the system's performance in terms of speed and accuracy in face
detection. Moreover, we recognize the importance of optimizing both hardware and
software configurations to maximize the system's efficiency and efficacy.