You are on page 1of 7

Volume 9, Issue 4, April – 2024 International Journal of Innovative Science and Research Technology

ISSN No:-2456-2165 https://doi.org/10.38124/ijisrt/IJISRT24APR1482

Facial Recognition-based Attendance System


Priyanka Manke1; Mohammed Hamza Siddiqui2; Himanshu Pednekar3; Pawan Sakat4; Qureshi Abdul Qadir5
Vasantdada Patil Pratishthan’s College of Engineering and V.A Dept of Information Technology, Mumbai, India

Abstract:- Facial recognition stands as one of the most II. LITERATURE SURVEY
efficient applications in image processing, playing a
crucial role in the technical sphere. Identifying human Our work draws inspiration from prior studies on facial
faces is a pressing concern, particularly in verifying recognition, specificallyIn this system, we adopt an
student attendance. Utilizing facial biostatistics, an approach that emphasizes facial recognition efficiency,
attendance system employing face recognition relies on focusing on succinct two-dimensional facial features rather
high-resolution monitoring and advanced computer than intricate 3D geometry[1]. Face recognition stands at the
technologies. The objective of developing this system is to heart of the recognition process, utilizing computer vision
digitize the traditional method of attendance-taking, technology to analyze facial features for identity
which involves verbal calls and manual record- verification. Broadly speaking, it encompasses two primary
keeping.Current attendance procedures are laborious components: face detection and face recognition matching.
and time-consuming, prone to manipulation through This technology operates by scrutinizing the facial
manual recording. Both traditional attendance marking characteristics of individuals, processing input from face
and existing biometric systems are susceptible to images or video streams. [2].During the system design
fraudulent proxies. This paper aims phase, user requirements underwent a transformation into a
toaddressthesechallenges. The proposed system format conducive to aiding system developers in
incorporates the Haar cascade algorithm, OpenCV, Dlib, implementation.The system design began with defining its
Pandas, and MySQL. Following facial recognition, logical structure before moving on to how it would function
attendance reports are generated and saved in Excel in the real world. To achieve this, we used Object-Oriented
format. The system undergoes testing under different Design (OOD) because it offers a variety of visual aids like
conditions, such as variations in illumination, head diagrams to model both the processes and the data
movements, and changes in camera-to-student distance. involved.Communication resources like these are highly
Rigorous testing evaluates overall complexity and effective and easily understandable among stakeholders. [3].
accuracy. The proposed system proves to be an efficient Each student in the class must register by providing
and robust solution for classroom attendance necessary information. After registration, their images will
management, eliminating manual labour and time be taken and stored in a dataset. During each class session,
consumption. Additionally, the system's development is faces will be detected from the live video stream of the
cost-effective and requires minimal installation. classroom. These detected faces will then be compared with
images in the dataset. If a match is found, attendance will be
Keywords:- OpenCV, Haar Cascade Algorithm, MySQL,Python. marked for the respective student. At the end of each
session, a list of absent students will be emailed to the
I. INTRODUCTION instructor. [4]. The proposed method starts with enrolling
students into the system. Then, it involves several key
Facial recognition, alongside voice, fingerprint, and iris stages: capturing images, preprocessing them, using the
recognition, offers a robust biometric security measure by Haar Cascade classifier for face detection, creating an image
identifying individuals in images and videos. Real-world dataset, and performing face recognition using the
applications encompass assisting the visually impaired, LBPHalgorithm[5].The architectural depiction of the smart
forensic investigations, locating missing individuals, and attendance automation system utilizing facial recognition
enhancing smartphone security. This project centers on comprises several vital elements working together
developing a facial recognition-based attendance system.. It harmoniously. Commencing with an input layer, it acquires
surpasses traditional methods (location-based, RFID, facial images, which subsequently undergo processing and
fingerprint) by reducing proxy attendance and offering readiness in a pre-processing layer. This preliminary phase
validated data. The system captures video in class, might involve activities like resizing images, refining
automatically matches faces to stored photos, and updates lighting and colors, and extracting facial attributes for
attendance, minimizing manual work.While traditional recognition objectives. Once primed, the images are
methods struggle with factors like lighting and pose, the transmitted to the facial recognition layer for scrutiny. This
proposed system employs feature extraction and analysis for layer is tasked with precisely recognizing faces and
improved accuracy. It is tested under diverse scenarios frequently integrates deep learning algorithms trained on a
(lighting, expressions, partial faces, facial variations) with face dataset to ensure dependable identification of
recognition rate as the key metric. individuals.Fine-tuning of these models and testing for
functionality may be included in this layer. When a face is
successfully detected, the attendance management layer

IJISRT24APR1482 www.ijisrt.com 673


Volume 9, Issue 4, April – 2024 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165 https://doi.org/10.38124/ijisrt/IJISRT24APR1482

assumes control, overseeing the maintenance of attendance extract their features, which are subsequently stored in the
records. Activities within this layer might include recording database. Subsequently, the face detection and feature
attendance, keeping records current, and producing extraction processes are carried out on an input image, and
reports[6]. This system employs facial recognition to the features of each facial category are compared and stored
automatically manage student attendance. in the database.

Regarding the facial recognition algorithm as a black IV. PROPOSED SYSTEM


box, the system determines attendance in the following
manner: Recording initiates at the commencement of the Efficient Attendance management is crucial for
class, with the database providing the start time and room ensuring operational efficiency in today’s organisational
number. Every 10 minutes, a snapshot of the class is taken. settings. Traditional Techniques often rely on manual
Utilizing these snapshots, the facial recognition algorithm processes which are susceptible to errors and consume
identifies students and records their presence within that 10- valuable resources. This system proposes an innovative
minute interval. A student's attendance for a class is recorded solution, an attendance management system powered by
if they are detected in a minimum of 'n' snapshots, a facial recognition technology, a form of biometric
threshold determined by the professor. This adaptability identification that has emerged as a powerful tool for various
permits students to leave during emergencies without losing applications, including attendance tracking By analysing
attendance credit[7].In contrast to the typical method, which your unique facial characteristics such as key facialpatches
divides facial features like eyes and mouth, our facial and Skin textures, facial recognition systems can accurately
recognition system examines the entire facial area as a identify and verifyindividuals. The proposed system presents
unified input for comprehensive analysis. This approach notable benefits compared to conventional methods, such as
enhances our understanding of facial detection in literacy improved accuracy, speed, and user convenience. The
assessments, unveiling a two-step process: initially objective of the attendance management system is to
classifying image content as either facial or non-facial, then capitalize on facial recognition technology's advantages to
conducting a thorough examination for functional simplify attendance tracking in organizations and
interpretation and appearance analysis. institutions. By integrating this technology organisations can
achieve higher levels of accuracy and efficiency in keeping
III. METHODOLOGY track of employee or student attendance Additionally, the
contactless nature of the facial recognition eliminates the
The face recognition process can be segmented into need for physical identifiers like id cards, offering enhanced
two primary phases: pre-detection processing, encompassing security and user convenience. The proposed system is
facial recognition processes, and detection and recognition, developed using Haar classifiers the machine learning
occurring subsequently, which involve activities such as approach that will be employed for facial detection within
feature extraction and matching. images. Local binary pattern histograms (LBPH) will further
enhance the facial recognition by capturing local texture
A. Facial Localization: patterns in facial images. FurthermorePython a versatile
The main goal of this stage is to identify the presence programming language will be used due to simplicity,
and position of human faces within a provided image. The readability and extensive libraries for machine learning and
results of this stage include segments containing each image processing tasks. Finally, structured query
recognized face in the input image. This procedure seeks to language(SQL) will be used to show facial images and the
establish a facial recognition system that is both more associated data in the database, enabling efficient retrieval
reliable and simpler to construct. and management of attendance records.

B. Facial Segmentation:  Types of Algorithms:


Following face detection, the subsequent stage This system employs various types of algorithms,
involves face segmentation (extraction), during which the including:
system separates and retrieves the facial area from the
remainder of the image. This procedure entails cropping the A. Eigen Faces.
identified faces according to the bounding boxes produced B. Linear Discriminant Analysis (LDA).
during face detection. The extracted facial regions are C. Local binary pattern histograms.
subsequently standardized to ensure uniform size, D. Haar Classifiers
orientation, and lighting conditions, thereby enhancing the
accuracy of subsequent processing stages. A. Eigen Faces:
This approach utilizes statistical methods to extract
C. Face Recognition: featuresinfluencingphotographs. The training database
Once facial images have been depicted, the provided is essential in the entire recognition process,
identification procedure commences. Establishing a face treating images from two different classes as unified entities,
database is crucial for enabling automated recognition. rather than segregated.
Multiple photographs of each individual are employed to

IJISRT24APR1482 www.ijisrt.com 674


Volume 9, Issue 4, April – 2024 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165 https://doi.org/10.38124/ijisrt/IJISRT24APR1482

Fig 1: Eigen Faces

B. Linear Discriminant Analysis (LDA) patterns undergo a transformation into decimal values,
Like Eigenfaces, the Linear Discriminant Analysis enabling the generation of a histogram representation.Within
(LDA) Also known as Fisher faces algorithm follows an the domain of facial recognition attendance management
iterative approach, incorporating principal components systems, the importance of effective feature extraction
analysis as a variation of Eigenfaces. The key difference lies methods becomes paramount in ensuring accurate
in how the algorithm handles classes. Unlike Eigenfaces, identification of individuals from facial images.
which doesn't differentiate between images from separate
classes during training, Fisher Faces employ linear
discriminant analysis to distinguish between images of
distinct classes. While each image is influenced by the
overall average, Fisher Faces enable discrimination among
images of different classes.

Fig 3: Local Binary Feature Histograms

D. Haar Classifiers:
The Haar classifier, commonly referred to as a Haar
cascade classifier, is an object detection algorithm based on
Fig 2: Linear Discriminant Analysis (LDA) machine learning, utilized for identifying objects or patterns
within digital images. Its most prominent use is in face
C. Local Binary Feature Histograms: detection, although it can also be trained to recognize a
Local Binary Feature Histogramsserves as a crucial range of other objects. Haar features operate akin to
texture descriptor employed in image analysis. Its convolutional kernels and are instrumental in detecting
functionality involves a comparison of individual pixels features within an image.These features encompass various
with their adjacent counterparts. Essentially, LBP aims to types, including line features, edge features, and four-
depict the inherent local structure of an image by encoding rectangle features, among others. Each feature is quantified
the interplay between the central pixel's intensity and that of by a singular value derived from the contrast between the
its neighbouring pixels. This encoding process commonly sums of pixels beneath corresponding black and white
entails the application of thresholding to pixel values, rectangles. Haar cascades offer several advantages. Their
thereby generatingbinarypatterns. Afterward, these binary reliance on simple Haar features and the cascading structure

IJISRT24APR1482 www.ijisrt.com 675


Volume 9, Issue 4, April – 2024 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165 https://doi.org/10.38124/ijisrt/IJISRT24APR1482

make them computationally efficient, enabling real-time


object detection in images and video streams. Additionally,
the algorithm can detect objects of different sizes by resizing
the search window. Furthermore, Haar cascades can be
trained to detect a wide variety of objects by using
appropriate training datasets, making them adaptable.

Fig 5: Block Diagram

Fig 4: Haar Classifiers

Fig 6: Flowchart

The training process begins by examining the directory exceeds that of its neighbouring areas, it is designated as 1;
containing the training data. Each image in the training otherwise, it is labelledas0. Following that, the subsequent
dataset is initially converted to grayscale.Next, the center of steps include resizing the images and converting them into a
each image is pinpointed, and a comparison against its numpy array, which acts as the fundamental data structure of
surrounding regions is conducted using a predetermined the numpy library.
threshold. If the intensity of the center portion equals or

IJISRT24APR1482 www.ijisrt.com 676


Volume 9, Issue 4, April – 2024 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165 https://doi.org/10.38124/ijisrt/IJISRT24APR1482

Following this, each face within the photograph is programming languages, and intelligent indentation, coding
identified and sorted into distinct lists, each accompanied by becomes a seamless and intuitive process.
its corresponding ID. Subsequently, the faces are trained
alongside their respective IDs. To clarify this process, D. Microsoft Excel
another flowchart depicting the system's operation is The Microsoft Office suite comprises Microsoft Excel,
necessary. a spreadsheet tool. Spreadsheets offer users the ability to
arrange data into tabular formats, organized in rows and
The system functions in the following manner: upon columns, facilitating mathematicalmanipulationthroughboth
reading the image, it is converted into grayscale. The Haar fundamental and sophisticatedarithmetic operations. In
Cascade frontal face module is employed to detect faces additiontoitsconventional spreadsheet functionalities,
within the image. Prediction of the faces in the image is Microsoft Excel features powerful graphing and charting
performed using the LBPH algorithm. Once the faces are tools, supports programming through Visual Basic for
predicted, they are outlined within a green box along with Applications (VBA), and enables data retrieval from
their corresponding names. external sources using Dynamic Data Exchange (DDE).
Excel, tailored for the creation of electronic spreadsheets,
V. SOFTWARE USED serves as a platform for managing, editing, and storing data
efficiently.Early electronic spreadsheet systems drew
A. Open CV inspiration from paper spreadsheets commonly utilized for
Upon being captured, the input image undergoes accounting purposes, thus retaining a similar foundational
processing by the phone's camera, immediately converting it design. Computerized spreadsheets mirror the basic
to grayscale. Utilizing the Haar Cascade frontal face structure of paper spreadsheets, with related data organized
module, the system proceeds to detect faces within the into tables consisting of standardized rows and columns of
image. Subsequently, the LBPH algorithm is applied to small rectangular boxes or cells.
predict the detected faces. Once predicted, identified faces
are outlined in a green box alongside their respective VI. FUTURE SCOPE
names.OpenCV (Open Source Computer Vision Library) is
an open-source software library primarily focused on In the foreseeable future, the integration of AI and
machine learning for computer vision tasks. It provides machine learning into this attendance management system
support for various platforms including Windows, Linux, presents a significant opportunity for advancement. Envision
Android, and macOS, and offers interfaces in languages a facial recognition system that achieves heightened levels
such as C++, Python, Java, and MATLAB. Real-time vision of accuracy and reliability. Through the incorporation of
applications are a significant aspect of OpenCV's sophisticated AI algorithms such as deep learning, the
capabilities, making use of SSE and MMX instructions system would adeptly identify faces even in challenging
whenever possible. Ongoing development efforts include the scenarios, such as low lighting or unconventional angles.
creation of fully functional CUDA and OpenCL interfaces. This refinement would result in diminished errors and
With a wide array of algorithms and supporting functions, heightened user confidence.Furthermore, machine learning
OpenCV is predominantly implemented in C++ and features capabilities could enable the system to discern attendance
a template interface seamlessly integrated with STL patterns over time. It would have the capacity to recognize
containers. anomalies, such as consistent tardiness or unexpected
absences, thereby facilitating more effective attendance
B. Pandas management and ensuring operational efficiency. Moreover,
Pandas, a Python library available as open-source, the potential for predictive analytics is substantial. Envisage
provides a wide range of tools for conducting data analysis. the \system's ability to forecast attendance trends based on
Within the package, numerous data structures are available, historical data. This predictive capability could revolutionize
suitable for a broad spectrum of data manipulation tasks. scheduling and resource allocation strategies, allowing for
Additionally, it encompasses diverse data analysis optimized operations and heightened productivity.
algorithms, enabling the resolution of data science and
machine learning tasks using Python. The integration of IoT devices offers another
dimension of automation. Consider the possibility of sensors
C. Visual Studio Code or smart locks autonomously detecting individuals' arrivals
Visual Studio Code (VS Code) stands out as a versatile and departures, obviating the need for manual check-ins and
Integrated Development Environment (IDE) known for its streamlining attendance tracking processes. Additionally, the
adaptability and effectiveness. It is created by Microsoft., it system's continuous learning capabilities promise ongoing
offers a smooth experience across various platforms, improvement. Through iterative refinement and adaptation
including Windows, macOS, and Linux. Utilizing to evolving attendance patterns and environmental factors,
TypeScript and built on the Electron framework, VS Code its effectiveness would endure over time, perpetually
provides a reliable foundation for developers with diverse enhancing and fine-tuning its algorithms.
skills and programming backgrounds.At its core, VS Code
features a highly customizable multi-window text editor
designed to enhance productivity. Equipped with support for
multiple undo actions, syntax highlighting for numerous

IJISRT24APR1482 www.ijisrt.com 677


Volume 9, Issue 4, April – 2024 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165 https://doi.org/10.38124/ijisrt/IJISRT24APR1482

Security enhancements are also within reach. Facial


recognition technology could extend beyond attendance
management to fortify access control measures. Imagine
restricted areas being accessible only to authorized
individuals, thereby bolstering organizational security
protocols. On the administrative front, integrating the
system with HR and payroll functions offers substantial
benefits. Automated data transfers between systems would
mitigate errors and streamline processes related to payroll,
leave management, and compliance.

In summary, the integration of AI and machine learning


into the attendance management system promises
heightened accuracy, efficiency, and security. This evolution
represents a mutually beneficial advancement, facilitating
smoother attendance tracking and streamlined operations for
all stakeholders involved. Fig 9: Attendance Management System

VII. RESULTS C. Attendance Taken


A. Main Screen

Fig 10: Attendance Management System


Fig 7: Main Screen
D. Recorded Attendance
B. Taking Attendance

Fig 10: Recorded Attendance


Fig 8: Attendance Management System

IJISRT24APR1482 www.ijisrt.com 678


Volume 9, Issue 4, April – 2024 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165 https://doi.org/10.38124/ijisrt/IJISRT24APR1482

VIII. CONCLUSION [10]. Mihir Ghanekar, Archita Sehgal, Shrishail Gouraond,


Maitray Wani, Prof. Pramila M “Facial recognition
The Attendance Management System, powered by based attendance system” International Research
facial recognition, provides students with quick and Journal of Engineering and Technology, Dept of
convenient access to their attendance data, which is Computer Engineering and IT, Mumbai,
subsequently transferred to an Excel spreadsheet.the Maharashtra, India.
proposed system offers improved facial recognition process [11]. Salim, Omar Abdul Rhman, Rashidah Funke
that is not dependent on any external devices like raspberry Olanrewaju, and Wasiu Adebayo Balogun. "Class
pi or any other module for capturing faces and recording attendance management system using face
attendance [1]. This system offers technology with improved recognition." 2018 7th International Conference on
security and user friendly interface. Computer and Communication Engineering
(ICCCE). IEEE, 2018.
REFERENCES [12]. Siswanto, Adrian Rhesa Septian, Anto Satriyo
Nugroho, and MaulahikmahGalinium.
[1]. A. Arjun Raj, M. Shoheb, K. Arvind and K. S. "Implementation of face recognition algorithm for
Chethan, "Face Recognition Based Smart Attendance biometrics based time attendance system." 2014
System," 2020 International Conference on International Conference on ICT For Smart Society
Intelligent Engineering and Management (ICIEM), (ICISS). IEEE, 2014.
London, UK, 2020, pp.
[2]. H. Yang and X. Han, "Face Recognition Attendance
System Based on Real-Time Video Processing," in
IEEE Access, vol. 8, pp. 159143-159150, 2020.
[3]. Edison Kagona and Sani Usman "Student’s
Attendance Management in higher institutions using
azure cognitive service ad Open CV face detection &
recognition attendance system”Department of
Computer Science & Information Technology,
Faculty of Science & Technology, International
University of East Africa; P.O.Box 35502 Kampala.
[4]. Smitha, & Hegde, Pavithra &Afshin,. (2020). Face
Recognition based Attendance Management System.
International Journal of Engineering Research and.
V9. 10.17577/IJERTV9IS050861.
[5]. Sandhya Potadar , Riya Fale , Prajakta Kothawade ,
Arati Padale, 2021, Attendance Management system
using Face Recognition, INTERNATIONAL
JOURNAL OF ENGINEERING RESEARCH &
TECHNOLOGY (IJERT) Volume 10, Issue 08
(August 2021).
[6]. M. Shamila1, Bhanu Prakash, Asrar Ahmed, Poshak
Prajeet, Ruby Pant ”Smart Attendance Autiomation
System” Department of CSE (AIML), GRIET,
Hyderabad, India Uttaranchal Institute of
Technology, Uttaranchal University, Dehradun,
248007, India.
[7]. Ashwin Rao “AttenFace: A Real Time Attendance
System Using Face Recognition”International
Institute of Information Technology, Hyderabad
ashwin.rao@students.iiit.ac.in
[8]. Dr. Sarita Sanap, Ms. Sakshi Narwade, Mr. Sahil
Goge,Mr. Krishna Pandit “Face Recognition Based
Attendance System Using Histogram of Oriented
Gradients and Linear Support Vector
Machine”Assistant Professor, Department of ETC
Engineering, MIT, Aurangabad, Maharashtra, India.
[9]. S. Dev and T. Patnaik, "Student Attendance System
using Face Recognition," 2020 International
Conference on Smart Electronics and
Communication (ICOSEC), Trichy, India, 2020, pp.
90-96.

IJISRT24APR1482 www.ijisrt.com 679

You might also like