An Automatic Attendance System Using Image Processing
An Automatic Attendance System Using Image Processing
The face is the identity of a person. The methods to exploit this physical feature have seen a
great change since the advent of image processing techniques. The attendance is taken in
every schools, colleges and library. Traditional approach for attendance is professor calls
student name & record attendance.The system described in this paper aims to deviate from
such traditional systems and introduce a new approach for taking an attendance using image
Processing.This paper describes the working of An Automatic Attendance System in a
classroom environment. Initially video clip of classroom is taken and is stored in the
database, and these video is converted to frames/images, then we apply Face detection
techniques such asAda-boost algorithm to detect the faces in frames/images and then features
are extracted of detected face by Histogram of Oriented Gradients (HOG) and Local Binary
Pattern (LBP) algorithm. The system first stores the faces of the students in the database. The
detected faces are compared with the faces stored in the database during face recognition by
using Support Vector Machine (SVM) classifier. If the system recognizes faces, the
attendance gets marked immediately of recognized faces.
Keywords- Face Recognition, Face Detection, AdaBoost, Local Binary pattern(LBP),
Histogram of Orientation(HOG), Support Vector machine(SVM).
----------------------------------------------------------------------------------------------------------------------------- ---------Date of Submission: 19 October 2015
Date of Accepted: 14 November 2015
----------------------------------------------------------------------------------------------------------------------------- ---------
I.
INTRODUCTION
A key factor of improving the quality of education is having students attend classes regularly. Traditionally
students are stimulated to attend classes using attendance points which at the end of a semester constitute a part
of a students final grade. However, traditionally this presents additional effort from the teacher, who must make
sure to correctly mark attending students, which at the same time wastes a considerable amount of time from the
teaching process. Furthermore it can get much more complicated if one has to deal with large groups of
students.
Maintaining the attendance is very important and compulsory in all the institutes for checking the performance
of students. Every institute has its own method in this regard. Some are taking attendance manually using the
old paper or file based approach and some have adopted methods of automatic attendanceusing some biometric
techniques. There are many automatic methods availableforthis purpose i.e. biometric attendance. All these
methods also waste time because students have to make a queue to touch their thumb on the scanning device.
Organizations of all sizes use attendance systems to record when student or employees start and stop work, and
the department where the work is performed. When it comes to schools and universities, the attendance
monitoring system is a great help for parents and teachers both. Parents are never uninformed of the
dependability of their children in the class if the university is using an attendance monitoring system. The
registers could easily be exploited by students and if information was mailed to the parents, there were high
chances that mails could be made to disappear before parents even saw them. With the monitoring system in
place, the information can easily be printed or a soft copy can be sent directly to parents in their personal email
accounts.
Hence, we proposed An Automatic Attendance system for students.
www.theijes.com
The IJES
Page 1
Input Images
SVM Training
Resize
Knowledge Base
Frame Generation
Pre-processing
Face Detection
Using Adaboost
Pre-processing
Feature Extraction
(CSLBP & HOG)
SVM Classification
Gray Conversion
Display Result
III. ALGORITHM
This section describes the software algorithmfor the system. The algorithm consists of thefollowing steps
Creation of database
Video acquisition
Frame generation
Pre processing
Face detection
Face recognition
Attendance
www.theijes.com
The IJES
Page 2
Start
Person 1
Face
images
Person 2
Face
images
Select Query
Video
Person n
Face
Images
Frame Generation
Pre-processing
Read the images
Faces
Face Detection using
ADABOOST
Pre-processing
Feature Extraction
Extract Features
from Images
SVM Classification
Train the features
using SVM
Retrieve Result Based
on Decision Value
Knowledge
Base
End
www.theijes.com
The IJES
Page 3
= [ -1 0 1]
=[
and = arctan
at orientation calculation rad2deg(atan2(val)) method is used, which returns values between [-180,180].
2) Orientation Binning
The next step is to compute cell histograms for later use at descriptor blocks. For 8x8 pixel size cells are
computed with 9orientation bins for [0,180] interval. For each pixels orientation, the corresponding
orientation bin is found and the orientations magnitude |G| is voted to this bin.
3) Descriptor Blocks
To normalize the cells orientation histograms, they should be grouped into blocks. From the two main block
geometries, the implementation uses R-HOG geometry. Each R-HOG block has 2x2 cells and adjacent R-HOGs
are overlapping each other for a magnitude of half-size of a block.
4) Block Normalization
L1-Norm normalization is implemented using norm(vec) method:
e is a small constant.
6) Detector Window
The detector window will be computed based on the size image.
3.2.2Local Binary Pattern
Given a pixel in the image, an LBP code is computed bycomparing it with its neighbors
s
wheregcis the gray value of the central pixel, gpis the value ofits neighbors, P is the total number of involved
neighbors and Ris the radius of the neighborhood.Suppose the coordinate of gcis (0, 0), then the coordinates of
gpare
(Rcos(2 p / P), Rsin(2 p / P)). After the LBP pattern of each pixel is identified, a histogram is built to represent
the texture
image:
www.theijes.com
The IJES
Page 4
k [0 , K ]
whereK is the maximal LBP pattern value.Then it return the histogram of the center pixel calculated.
Finally, the system does recognize the face. After extracting the features from the given image, a recognizer is
needed to recognize the face image from the stored database. This phase involves a SVM classification
algorithm. The features extracted by HOG and LBP for the faces of student are loaded into the SVM classifier,
SVM Classifier here is mainly used to do the input parameter checking if the features of a face of particular
student matches with the features of face of student in the database then the decision value for that face will be 1
then attendance is marked automatically.
An error message is displayed if there are faces that does not with the faces of database. In this way faces of
students are verified one by one with the face database using the SVM classification and attendance is marked
on the server.
IV. IMPLEMENTATION
The proposed plan for An Automatic Attendance System using image processing includes:
Enrolment of student faces.
Capturing the video of students.
Face detection and feature extraction.
Face recognition and marking attendance.
Following are the screenshots of the implementation of this project.
4.1 Creation of Database
This window shows the creation of database of the students
Fig. 3.
The menus are create database, SVM training, select video, face
www.theijes.com
The IJES
Page 5
Fig. 6.
4.5Frame Generation
After inputting the videoto the computer, frame generation is first performed by dynamic frame generation of
video. We get no. of frames/images, the generation of frames/images per/sec is 30 to 40 frames. The length of
the input video captured is 1 minute 8 sec, hence the generation of frame is huge, so we can select the frames in
between, like between 99 to 1356. Hence the frames will be processed between 99 to 1356 frames.
www.theijes.com
The IJES
Page 6
Fig. 9. The name of the student in message box displayed after face reorganization
www.theijes.com
The IJES
Page 7
V.CONCLUSION
Our proposed project, An Automated Attendance System has been envisioned for the purpose of reducing the
errors that occur in the traditional (manual) attendance taking system. The aim is to automate and make a system
that is useful to the organization such as an institute. The camera plays a crucial role in the working of the
system hence the image quality and performance of the camera in real-time scenario must be tested thoroughly
before actual implementation.
This method is secure enough, reliable and available for use. No need for specialized hardware for installing the
system in the classroom. It can be constructed using a camera and computer.
REFERENCES
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]
[11]
[12]
[13]
[14]
www.theijes.com
The IJES
Page 8