Smart Classroom Attendance System Using Face Recognition and Raspberry Pi
Smart Classroom Attendance System Using Face Recognition and Raspberry Pi
https://doi.org/10.22214/ijraset.2022.45718
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VII July 2022- Available at www.ijraset.com
Abstract: Face detection in real-time is a component of an automated face recognition system that is also employed
in the development of a separate research subject. As a result, there are a variety of ways for dealing with face
detection issues. The goal of our proposed project is to detect and recognize faces, as well as to record attendance for
each face. The camera connected to Raspberry pi USB port will capture the faces of students in real-time who are
available in the class for face detection using Viola Jones Algorithm. The image which is captured is compared with
stored images in database and then recognize the faces of every student using LBPH and according to that,
attendance will be given to that class for that particular student. The details of the students are stored in MySQL
database. The proposed project is being presented as a solution for the Manual Attendance Marking System. It is
designed to be efficient and reliable.
Keywords: Attendance, Facial Detection and Recognition, Raspberry Pi, Viola Jones Algorithm, LBPH, OpenCV-
Python, MySQL Database.
I. INTRODUCTION
Existing system of attendance system is a manual entry of the students attendance. Handwritten registers will be used to keep track
of attendance. The user’s record will need to be maintained, which will take more time. The human effort is more here. The face is
the most distinguishing feature of any human. As a result, automating the attendance process will enhance class productivity. The
proposed system automates the attendance system of educational institutions and reduces the shortcoming of the existing manual
system. Smart device that can identify each student will be created and it will eventually record each student’s attendance data into
an excel database and connect to a GUI system. Takes out the plausibility of proxy and keeps record of attendance of students in a
well viable way. This technique replaces traditional attendance system such as calling students' names or checking their ID cards,
which can disturb the teaching process and also be unpleasant for students during exam periods.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3175
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VII July 2022- Available at www.ijraset.com
For this, the system associated digital camera is needed to require the input pictures in an exceedingly fastened space wherever the
camera is located. Haar Cascade algorithm is used to detect faces in the images captured from the camera. LBPH algorithm is used
to train the frontal face and eyes.
Then the trained faces are stored in a database, and compared to the images which are trained. After comparing it marks the
attendance to the recognized student.
Other paper proposed by [4] introduced a real-time computer vision algorithm in automated attendance management system. The
system deployed a non-intrusive camera in the classroom that can snap photographs, and compared the extracted face from the
image captured by the camera with faces inside the system. This system made use of machine learning algorithms, which are
frequently used in computer vision. Also, Haar Classifiers are used to train the images which are captured from the camera. The
image of the face captured by the camera will be converted to grayscale and subtracted before being uploaded to the server and
processed later.
Paper [5] prescribed the system with hardware such as Raspberry PI and a wired camera, but the software also consisted of using
Open-CV. Identifying a face in a picture is the initial stage in facial recognition; the process is only carried out if there is a face
present. The face pinning was performed using Haar Cascade Classifier.
Paper[6] describes a system in which a camera is positioned in the front of the classroom and is used to capture face and then create
a face dataset.
The server, where the photographs are transferred, is connected to the system. The other modules of the system include Face
Detector and Face Recognizer.
Face Detection is done using HAAR classifier and also OpenCV library. Here, EigenFaces algorithm is used for face recognition is
a very fast algorithm.
The face which is captured through the camera is converted into gray scale. The faces in the student image database will undergo
the same modification. Raspberry Pi is the perfect tool that is used as a desktop computer or a server so that all computations can be
done without the requirement of a large desktop computer to be placed in every classroom. In the database, each image is stored
with date and time. And each time the face is successfully recognized, the new image is stored and the older images are deleted
gradually. This provides the system to adapt to the changes in appearance of the student over time.
B. Objectives
To make sure that the process of recording attendance is quicker than the old one, which could record the attendance of each student
is as little as 3 seconds. The objective is to develop a self-powered, mobile smart attendance system. Be able to store the database in
memory with enough space.
Based on a face database, be able to reliably detect an individual's face. Create a database for the system to track attendance. Give
admins access to the attendance database through a user-friendly interface, and allow non-admins to monitor their attendance. Allow
new students or staff to enter their faces into the database via a graphical user interface. Ability to show the user whether or not the
face-recognition process was effective.
C. Existing System
For students, the current method is a manual entry system. The attendance will be kept on handwritten registers in this location.
Maintaining the record of the user's will be a time-consuming task.
The effort of human is more here. The use of fingerprint technology as identification verification allows for the recording of
students' attendance..
The system takes finger patterns from the fingerprint module and compares them to patterns already stored in its database to verify
the data. When stakeholders pass within the RFID attendance reader's radiofrequency range, the RFID attendance system delivers
wireless identification. Students and staff must wear an RFID tag that provides unique information about them, such as their
class/section/name/ID number, in order for attendance to be automatically recorded.
D. Proposed System
The proposed system automates the attendance system of educational institutions and reduces the shortcoming of the existing
manual system. A smart device that can recognize each person's identification and eventually save attendance information in a
database system will be created.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3176
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VII July 2022- Available at www.ijraset.com
III. METHODOLOGY
Fig 3.1
Fig 3.2
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3177
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VII July 2022- Available at www.ijraset.com
Each actor need not partake in every use case, but it is acceptable. Each actor has to first login into the system. An admin actor can
maintain the student details that are to enroll/register the students to the system. It includes insert, update & delete operations. He is
the one who has all the control over the database. He can generate reports i.e., export the details into a .csv file. He can do that daily
or get complete attendance of a month or consolidated i.e., a particular student. He can also view the attendance directly in the portal
itself. The second actor Professor interacts with 4 functionalities. He takes the attendance as per the subject or just the timing of the
class. He can also generate & view attendance reports for his reference. The third actor Student can only view the attendance.
Fig 4.1
1) Haar features : These features on the image make it easy to find edges and lines in the image and select areas where pixel
intensities change suddenly. The Haar Features are shown in Fig 4.2.
Fig 4.2
2) Integral Image: The summation of the pixel values of an image can be quickly and effectively determined using an integral
image.
3) Adaboost Technique: AdaBoost is a feature selection strategy that allows you to choose a small subset of features from a large
set while excluding any that aren't performing as well as the others.
4) Cascading Classifier: Each weak classifier serves as a stage in a cascade created by the strong classifier. The cascade's role is
to quickly eliminate non-faces and prevent the loss of valuable time and calculations.
Summarizing and comparing the pixel values of both regions is a straightforward way to determine which zone is lighter or
darker It follows that the total of the pixel values in the darker and lighter regions would differ. Haar-like properties can be used
to do this. A Haar-like feature is created by dividing a rectangular section of an image into several parts. They're frequently
depicted as adjacent black and white rectangles.
B. LBPH
A person's face can be recognized using the Face-Recognition algorithm LBPH (Local Binary Pattern Histogram). It is renowned
for its effectiveness and capacity to distinguish between a person's face from both the front and the side. It's based on the concept of
Local Features. LBP is described as an ordered collection of binary pixel intensity comparisons between the center pixel and the
eight pixels surrounding it. Selecting the center pixel and applying a condition is the most basic computation. If the value is more
than or equal to the value in the center pixel, the outcome is "1".If the value is less than zero, the result is zero. The process of
LBPH is shown in Fig 4.3.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3178
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VII July 2022- Available at www.ijraset.com
Fig 4.3
C. Python IDE
A powerful and simple to learn programming language is Python. It has effective high-level data structures and a straightforward
but efficient object-oriented programming approach. Python is a superb language for scripting and speedy application development
across a wide range of platforms thanks to its lovely syntax, dynamic typing, and interpreted nature. The Python interpreter can
easily be expanded with new C or C++ (or other languages callable from C) functions and data types. Python can also be applied as
a bespoke programming language extension.
D. OpenCV
A programming environment called OpenCV is predominantly focused on real-time computer vision. Its modular design suggests
that it comprises a number of shared or static libraries. We employ a module for image processing that does geometric picture
modifications (such as resizing, affine and perspective warping, and generic table-based remapping), color space conversion,
histograms, and other operations on the images. Among the libraries utilized in our research were those for Haar classifiers,
LBPH face classifier, and Histogram of Oriented Gradients (HOG).
E. Raspberry Pi
The Raspberry Pi is a compact, affordable computer about the size of a credit card that utilizes a regular keyboard and mouse and
connects to a computer monitor or television. People of all ages can use this smart little gadget to learn about computers and
programming languages like Scratch and Python. This Raspberry Pi can connect to the internet since it features an Ethernet chip, the
ENC28J60.
F. MySQL Database
A database is a systematic collection of data. A more secure database is MySQL. Different operating systems, such as Windows,
Linux, Solaris, and other UNIX variants, support MySQL. MySQL enables you to run the client and server
programs simultaneously or autonomously, via a local network or the internet MySQL is a simple database management system.
G. Tkinter
Tkinter is a Python library for designing graphical user interfaces (GUIs) for desktop applications. Python and Tkinter work well
together to efficiently and simply create graphical user interfaces. The Tk GUI framework contains Tkinter, a powerful object-
oriented interface. It features a large number of widgets to pick from and is by far the most user-friendly. It offers a number of
geometry management techniques, including pack(), grid(), and place(). Many GUI programming controls, including buttons, and
text boxes, are supported by Tkinter. These controls are generally referred to as widgets.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3179
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VII July 2022- Available at www.ijraset.com
The complete system majorly consisting of raspberry pi board, web camera and monitor are connected as shown in Fig 6.3.
Fig 6.3
Some of the Snapshots of our project as shown in Fig 6.4, Fig 6.5 .
.
Fig 6.4 Fig 6.5
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3180
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VII July 2022- Available at www.ijraset.com
VII. ACKNOWLEDGEMENT
We would like to sincerely thank Dr. Smitha Shekar B, Associate Professor, Dept. of CSE, Dr.AIT, for her advice and support
throughout this project. We gained a great deal of knowledge. We also appreciate our friends' assistance and words of
encouragement.
REFERENCES
[1] B. Smitha Shekar and G. Harish, "A Machine Learning Model For Detection and Recognition Of Traffic Signs," 2021 International Conference on Intelligent
Technologies (CONIT), 2021, pp. 1-4, doi: 10.1109/CONIT51480.2021.9498270.
[2] P. Padma Rekha, D. Amudhan, V. Narendhiran, N. Pavithra, S. Ramya, “AUTOMATIC ATTENDANCE MONITORING SYSTEM”, International (2016).
[3] CH. VINOD KUMAR, DR. K. RAJA KUMAR, “Face Recognition Based Student Attendance System with OpenCV”, International Journal of Advanced
Technology and Innovative Research, ISSN 2348–2370 Vol.08, Issue.24, December-2016.
[4] V. Shehu and A. Dika, “Using real time computer vision algorithms in automatic attendance management systems,” Inf. Technol. Interfaces (ITI), 2010 32nd
Int. Conf., pp. 397–402, 2010.
[5] Rajashree P. Suryawanshi1, Vijay Singh Verma2, Siddarth3, Akhilesh Kumar Singh4 – “Face “recognition technology based automated attendance system”
International Journal of Advance Engineering and Research Development.
[6] Dr. A Babu Karuppiah, R Raja Raja, B Sri Devi, “Online Attendance System”, International Journal of Engineering Research and Technology(IJERT),2278-
0181,2017.
[7] Samridhi Dev, Tushar Patnaik, “Student Attendance System using Face Recognition”, IEEE International Conference on Smart Electronics and
Communication(ICOSEC), 2020.
[8] Vaibhav Grover, Nishitha Chhabra, “Attendance Monitoring System Through Face Recognition”, IEEE 6th International Conference on Computing for
Sustainable Global Development, 2019.
[9] A L Rekha and H K Chethan,” Automated Attendance System using face Recognition through Video Surveillance”, International Journal of Engineering
Research and Technology(IJERT), Vol. 1, no 11, pp. 1327-1330,2014.
[10] Dr. A Babu Karuppiah, R Raja Raja, B Sri Devi, “Online Attendance System”, International Journal of Engineering Research and Technology(IJERT),2278-
0181,2017.
[11] Nandhini R, Duraimurugan N, S.P Chokkalingam,” Face Recognition Based Attendance System”, International Journal of Engineering and Advanced
Technology(IJEAT), Vol. 8, pp. 2249-8958,2019.
[12] Ishitha gupta, Varsha Patil, Chaitali Kadam, Shreya Dumbre,” Face Detection and recognition using Raspberry Pi”, IEEE International WIE Conference on
Electrical and Computer Engineering(WIECON-ECE),2016
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3181