Professional Documents
Culture Documents
Final Project
Final Project
By
Dyar Jader Baqi
Safin Sirwan Ahmed
Rokar Azad Qarani
Supervised By
Asst.Lect. Ara Zozan Miran
May 2022
I
Supervisor’s Certification
I certify that the preparation of this graduation research project titled
“Face Detection Attendance System “ was made under my supervision at
the department of Information Technology – Lebanese French University in
partial fulfillment of the requirements for the degree of BSc. in Information
Technology.
Signature:
Examining Committee
Signature:
Name:
- Chairman -
Date: / 05 / 2022
Signature:
Name:
- Member -
Date: / 05 / 2022
Signature:
Name:
- Member -
Date: / 05 / 2022
Head of Department
Signature:
IV
Abstract
The current COVID-19 pandemic has brought the world to a standstill and drawn
everyone's attention; as a worldwide pandemic, everyone was aware of it. Virus
outbreaks, on the other hand, are a yearly occurrence in several developing countries. To
safeguard ourselves from these dangers. In computer-based communication,
authentication is a problem. Face recognition is widely utilized in a variety of
applications, including security and access control. The project explains how to use face
recognition to take student attendance. The Principal Component Analysis (PCA)
algorithm is used to implement facial recognition. The system will recognize the student's
face and automatically save the response in the database. The system also has the ability
to retrieve a list of pupils who are missing on a given day.
Table of Contents V
Page
Subject
No.
Supervisor’s Certification I
Examining Committee Report II
Dedication III
Abstract IV
List of Figures VI
List of Abbreviations VII
Chapter One: An Overview
1.1. Introduction 1
1.2. The Aim 1
1.3. Related Work 2-3
1.4. Problem Statement 4
1.5. Proposed Solution 4
Chapter Two: The System Design
2.1. Introduction 5
2.2. The System Architecture 5
2.3. The Data Flow Diagram 6-7
Chapter Three: The Implemented System, Tests and Experimental Outcomes
3.1. Introduction 8
3.2. Implementation Tools 9
3.3. Experimental Outcomes with Screen-shots 10
Chapter Four: Conclusions, Limitations and Future Works
4.1. Conclusions 11
4.2. Limitations 11
4.3. Suggestions for Future Works 11
References
References 12
Appendices
Appendix A: Training 13
Appendix B: Testing 14
VI
List of Figures
Figure Page
Figure’s Title
No. No.
2-1 The architecture of face detection 5
2-2 Data Flow Diagram 6
3-1 Recognize face with the mask 9
Chapter One
An Overview
1.1 Introduction
facial "verification" is pretty simple when used for individual recognition, such as to
unlock your phone image will compare to the recorphotoshoto. COVID19 regulations
must be followed by everyone in this case. universities open, the system should check if
pupils are wearing masks or not (Hammoudi, 2020). Furthermore, attendance will be
taken into account. Face recognition with mask detection is a more efficient means of
authenticating a person with less data. Picture processing is utilized in a variety of
applications, including image recognition. Here,The student's mask will be recognized
and he or she will be allowed to attend using facial recognition. The existing system used
to take a photo of each student as they entered the classroom, which improved facial
recognition accuracy. Previous techniques were less accurate because students wore
masks and their facial expressions were caught less accurately. Face mask detection
combined with an attendance system is a contactless technique that complies with many
countries' policies while also creating a safer and more productive working environment.
We're making use of a live webcam mask. Matlab source code This file is for putting a
trained model to the test on a live image. Here, support packages such as a USB webcam
package are necessary for installation; when a USB webcam is attached, the system
automatically installs. Detecting facial masks can be done in a variety of ways. For
example, electromagnetism and Face mask detection using radiometry techniques. In
order to recognize Facial Masks, researchers used deep neural networks (ANN) and
machine learning approaches. On the basis of performance measurements, a comparison
was also done between ELM ANN and BP ANN. The systems base, according to
Hammoudi et al, To detect the face as well as essential elements of the face from the
camera-based acquisition, Methode uses HAAR-like features descriptors. The system
uses machine learning to detect items based on face traits and different methods,
according to (P. Viola and M. Jones, 2001). The image is converted to grayscale by
removing RGB colors, and rectangles are used to differentiate edges and detect face
features. The viola-jones method is the name of this system. We acquired 94.8 percent
accuracy from this approach, as well as 15 percent any other method by a factor of ten.
As a result, detecting face features takes extremely little time.
Chapter One: An Overview 4
2.This includes the more time consumed by the students to find their name on sheet.
3.Some students may mistakenly signed another student’s name and the sometimes sheet
may got lost.
4.Using online platforms for checking attendances might not work effectively with the
spread of COVID-19 it is mandatory for students to wear Mask.
Chapter Two
The System Design
2.1 Introduction
The whole system's logical design is made up of various components. The system
begins by extracting a sample of the student's image from input devices such as a camera.
The image is then enhanced with image enhancement software for better face detection
and recognition. The system may give attendance to the identified kids and store it to the
attendance sheet after correctly identifying the face by comparing it to the face database.
2.2. Architecture
The matching process compares a query face image to a template face image, whereas the
problem compares a query face image to a template face image. The goal of this system
is to create an attendance system that uses face recognition technology. In this case, an
individual's face will be used to determine attendance.
Process
3.Reading the face and moving to the database to obtain the person's information,
determine if the person is wearing a mask or not, and record the attendance of each
person who is shown.
Data flow
First, start the system, then switch it on, next capture the face. After that, the system will
check in database, then in recognize face we have two options: yes or no. If the answer is
no, we proceed to alert no face detected. If yes, system will check mask wearing, finally
to the mask recognition procedure, and there are two options: yes or no, in the case of not
wearing mask, system says absent, in the case of wearing mask, it will mark as present,
then the system will be stopped.
Database
For any student, we must create a file and save it in the database, and when we run the
system, the program will go to the database and search inside the file to find and compare
the real picture to detect the face. In the program, we have one database, and inside the
database, we have another file, and inside the file, we have 150 pictures for each student.
Chapter Three :The implemented System, tests and Experimental Outcomes 8
Chapter Three
The Implemented System, Tests and
Experimental Outcomes
3.1 Introduction
T his system's method will involve taking images using a camera and then comparing
them to a pre-loaded set to determine compliance. It can also track attendance over
time and provide a report as a result. Admin with permission will be able to make
essential changes. Students can examine the data set to learn about the necessary
modifications. These stages can be depicted using a use case diagram, as seen below.
Hardware tools
All thing user need in terms of hardware for face detection is a computer
with a built-in camera, at least 8GB of ram, Core i7, and Windows 7 or
higher. The camera will work while the system is running, and when a face
appears in front of the camera, it will detect the face; otherwise, it will say
no face detect. The system will run much faster and smoother if the
computer has more powerful ram and a higher Core i7.
Software Tools
This real-time face detection program is developed using MATLAB version
R2020a. A graphic user interface (GUI) allows users to perform tasks interactively
through controls like switches and sliders. You can easily create a GUI and run it in
MATLAB or as a stand-alone application. The initial program output of this project is
shown in 1. Creates a detector object using mathwork, Takes the image from the video,
Detects if mask wear or not, Annotates the detected features.
Chapter Three :The implemented System, tests and Experimental Outcomes 9
When we show the mask, it is easily read in the project, and it indicates that the person
is present.
Chapter Three :The implemented System, tests and Experimental Outcomes 10
Chapter Four
Conclusions, Limitations and Future Works
4.1 Conclusions
Through implementation of this system, the time and effort required for the attendance
carried out at schools, colleges and universities can be reduced. Also the manual efforts
required for the same are reduced. The calculation of the attendance can also be carried
out using this system. The human errors can be minimized if the system is properly used.
Human intervention is reduced which leads to less mistakes and less amount of tedious
work. Since face recognition is used for marking attendance, through a stationary camera
which will scan the whole classroom, no extra efforts are required for the same.
4.2 Limitations
The researchers suffers from many limitations during the design and implement system,
as listed in the following:
1. Poor Image Quality Limits Facial Recognition's Effectiveness Image quality affects
how well facial-recognition algorithms work. The image quality of scanning video is
quite low compared with that of a digital camera
2. Problem with mask at the first it will not recognize person while wearing mask because
it work totally on face
3. Different Face Angles Can Throw Off Facial Recognition's Reliability ,The relative
angle of the target’s face influences the recognition score profoundly.
References
Appendix
Appendix A: Training
clc
close all
g=alexnet;
layers=g.Layers;
layers(23)=fullyConnectedLayer(7);
layers(25)=classificationLayer;
allImages=imageDatastore('databass','IncludeSubfolders'
,true, 'LabelSource','foldernames');
opts=trainingOptions('sgdm','InitialLearnRate',0.001,'M
axEpochs',20,'MiniBatchSize',64);
myNet=trainNetwork(allImages,layers,opts);
save myNet;
Appendix 14
Appendix B: Testing
clc;close;clear
c=webcam;
load myNet;
faceDetector=vision.CascadeObjectDetector;
Dyar=0
Rokar=0
Safin=0
Balaji=0
while true
e=c.snapshot;
bboxes =step(faceDetector,e);
if(sum(sum(bboxes))~=0)
es=imcrop(e,bboxes(1,:));
es=imresize(es,[227 227]);
label=classify(myNet,es);
image(e);
title(char(label));
Rokar=Rokar+1
end
Safin=Safin+1
end
if (label=='Dyar Jader without mask')
Dyar=Dyar+1
end
if (label=='Rokar azad wearing a mask')
Rokar=Rokar+1
end
Appendix 15
end
if (label=='Dyar Jader wearing a mask')
Dyar=Dyar+1
end
if (label=='Dctor Balaji without mask')
Balaji=Balaji+1
end
end
Appendix 16