Face Detection Based Attendance System Using Open CV Approach
Face Detection Based Attendance System Using Open CV Approach
ISSN No:-2456-2165
Abstract:- Attendance management has never been an The most widely used graphical user interface
easy task for college or hostel management. There are approach is Tkinter. It's a Python interface to the Python
many problems while taking attendance. They can take Tk GUI toolkit.
attendance in a variety of ways like the teacher taking the
attendance orally, fingerprint based attendance, sign Pandas is built on top of the Numpy library, which
based attendance system. But these are time-consuming can handle multi-dimensional arrays. It's one of the most
and difficult-to-implement processes.Also there may be well-known data manipulation packages, and it's included
chance of fraudlent attendance in girl’s hostel. So, having in almost every Python distribution. It's compatible with a
a face-detection-based attendance system helps in these variety of Python data science modules
situations.This system uses LBPH (Local Binary Pattern
Histogram) algorithm for training and detecting the Classes for manipulating dates and times may be
images. The first task is to register the students and take found in the Python Datetime package. These classes deal
their images. The second task is to train their images. The with dates, times, and time intervals.
third task is to detect their faces and mark the attendance. Our main objective is to develop a smart computer
As the face is used for taking attendance, this approach based attendance to monitor the attendance of students
removes the possibility of fraudulent attendance.This regularly and effortlessly.
system also reduces the paper work for storing the
attendance. ORGANISATION
The following is the format of this paper: The second
Keywords:- Face Detection, Attendance Management, LBPH
section discusses literature reviews. The proposed
Algorithm, Tkinter, OpenCV.
framework is described in Section 3. And the section 4
I. INTRODUCTION describes about the Results and Analysis.
The human face plays important role in our daily lives, II. LITERATURE SURVEY
especially to identify the people. Face recognition is a type of
The whole debate in this part relies around the many
technique that takes a person's facial images and stores them
literature survey articles to which we alluded[1]. Real-time
as a unique face print to identify them. Because of its vast
computer vision methods are employed in automatic
application, face recognition technology has attracted the
attendance management systems. This study proposes a
interest of numerous researchers. As it is a contactless
novel approach to automated attendance management
procedure, this technology overtakes the problems of other
systems that incorporates computer vision techniques. The
recognition techniques such as fingerprint and iris recognition.
suggested system incorporates real-time face recognition
This systems may also detect a person from a distance.This
algorithms into an existing Learning Management System
technology is currently used at many public places to identify
(LMS), which automatically detects and registers students
criminals and also used in offices to check the regularity of
in attendance at a lecture. Combining machine learning
their employees.
algorithms with adaptive techniques of detecting face
A face recognition system is a piece of computer changes over time, the device works as a complement for
software that can be used to identify or validate a person by instructors.
comparing patterns based on theirfacial features. In this
Software that recognises faces The Lecture
system, OpenCV, Face Recognition, TKinter, Pandas,
Attendance System[2] is a system that keeps track of
Datetime libraries were used. OpenCV and Face Recognition
students' attendance in class. Face recognition is used to
are the main modules for face recognition. Using these
take attendance automatically. However, because the face
modules, the system first takes the images of the student and
detection rate is insufficient, it is impossible to accurately
save them in thedatabase, which inturn used for training
assess attendance using each face recognition result
purposes.Finally, when the system camera is turned on, the
independently. We provide a technique for accurately
system detects the faces and marks them as present.
calculating attendance based on all face recognition data
OpenCV is a computer vision, machine learning, and gathered from continuous observation in this study.
image processing toolbox that is free to use. It can recognise
products, persons, and even human handwriting in
photographs and videos.
IJISRT22NOV439 www.ijisrt.com 86
Volume 7, Issue 11, November – 2022 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165
Attendance in the classroom is automatically recorded. III. PROPOSED SYSTEM
[3] In today's world, RFID (radio frequency identification) is
one of the most widely utilised automated identification This section describes about the architecture of
technologies. To make the most of this technology, there is a proposed system and methodology.
lot of research and development going on in this subject, and A. Architecture
many new applications and research areas will emerge in the
next years
IJISRT22NOV439 www.ijisrt.com 87
Volume 7, Issue 11, November – 2022 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165
The feature vector of an image is obtained with the
help of LBP values that were calculated before. Now, the
image is split into smaller parts. For example, an image is
split into 64 parts and each part has a histogram constructed.
It can be seen in figure 4. Now, after all the histograms are
obtained, these are combined into one and the result is a
face vector, which in turn is a big histogram that gives us
the global description of the image.
a) Take Images
At first details of the student are entered and take
their images during the joining of the students into
the organisation or hostel. By using the Video
Capture( ) method of cv2 library we take the images
of a person standing infront of the camera until the
desired number is reached, in this system we take 60
images of each person. The captured images are now
Fig . 2: Image Processing saved in the Training image folder. When clicked on
take image the student student details are saved as
The below figure represents the LBP value. shown in figure 5.The details of students are stored
in the Student Details folder.
By using the intensity of the centre picture element as a Fig. 5: Images Saved
threshold, if the neighbour pixel has more intensity, then it is
assigned as 1 or else 0. Hence, each pixel is associated with an Figure 5 decribes about, that the images are saved for
eight digit binary number which is known as LBP value. the given Id and Name.
b) Train Images
Images are trained using the images in the Training
Image folder when clicked on train button. It is
shown in figure 6. The more the dataset is, the more
is the accuracy of detection. During training of the
images, we first get the path of all files in the folder
and then loop through all the image paths and load
the Ids and the images after creating an empty face
list and id list. This system uses LBPH algorithm for
training the images.
IJISRT22NOV439 www.ijisrt.com 88
Volume 7, Issue 11, November – 2022 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165
On the other hand, if the image doesn’t match with
any of the images in the dataset then it displays “Unknown”
on the frame as shown in figure 8.
c) Detect Images
This is where the actual algorithm works to detect
images and to store the attendance. First we capture the
image of the student and convert into grayscale to
compare. Here, we use pandas library to read the csv
file which contains the details of the student. If the
image is matched with anyone in the dataset then the
name and roll number of the student are displayed on
the window as shown in figure 7.
Fig. 9: Detect without glasses
IJISRT22NOV439 www.ijisrt.com 89
Volume 7, Issue 11, November – 2022 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165
After detecting the face of the student, the attendance is Pattern Histogram Method and SHA 256 Bit in the
displayed on the Gui as shown in figure 11 and also stored in Face Recognition System", International journal of
the excel sheet as shown in figure 12. research and Review, vol 7, 2020.
[6.] Face Recognition-based Lecture Attendance
System:Y. Kawaguchi, “Face Recognition-based
Lecture Attendance System,”3rd AEARU …, no.
October, 2005.
[7.] G. RoshanTharanga 1*, S. M. S. C. Samarakoon 2, T.
A.P. Karunarathne 2, K. L. P. M. Liyanage 2, M. P.
A. W. Gamage2,D. Perera. 2 (smart - fr) –“Smart
attendance using real time face recognition”.
[8.] Puja S. Prasad, Rashmi Pathak, Vinit Kumar Gunjan
and H. V. Ramana Rao, "Deep Learning Based
Fig. 11: Attendance Displayed in GUI Representation for Face Recognition", springer,
Singapore, 2020.
[9.] Ashish Choudhary, Abhishek Tripathi,Abhishek
Bajaj,Mudit Rathi and B.M Nandini Information
Science and Engineering, The National Institute of
Engineering, Automatic Attendance System Using
Face Recognition. IRJET 12/5/2013.
[10.] Anushka Waingankar1, Akash Upadhyay, Ruchi
Shah, Nevil Pooniwala, Prashant Kasambe. Face
Recognition based Attendance Management System
using Machine Learning IEEE 8/6/2012.
Fig. 12: Attendance stored in Excel sheet [11.] By Alan D. Moore , Python GUI Programming with
Tkinter Develop Responsive and Powerful GUI
V. CONCLUSION AND FUTURE WORK Applications with Tkinter , IEEE 4/11/2010.
REFERENCES
IJISRT22NOV439 www.ijisrt.com 90