Beruflich Dokumente
Kultur Dokumente
ON
“Smart attendance system using facial recognition”
BACHELOR OF TECHNOLOGY
In
INFORMATION TECHNOLOGY
Submitted by:
Ayush Sharma (16EMBIT015)
Chirag Sharma (16EMBIT020)
Umesh Yadav (16EMBIT057)
------------------------------------------------------------------------------------------------------------
1|Page
CANDIDATE DECLERATION
We hereby declare that the work presented in this project titled “Smart Attendance
System” submitted towards completion of Major project in 8th Semester of B.Tech
(IT) at the M.L.V. Textile and Engineering College Bhilwara. It is an authentic
record of my original work pursued under the guidance of Mr. ARUN KUMAR
Assistant Professor Department Of Information Technology, M.L.V. TEXTILE &
ENGINEERING COLLEGE,BHILWARA. We have not submitted the matter
embodied in this project for the award of any other degree.
Ayush Sharma:
Chirag Sharma:
Umesh Yadav:
Date:
2|Page
M.L.V. TEXTILE & ENGINEERING COLLEGE
(An Autonomous Institute of Govt. Of Rajasthan)
Information Technology
BONAFIDE CERTIFICATE
This is to certify that the project work entitled “Smart Attendance System Using Facial
recognition” is carried out by:
Under my supervision and guidance during the academic year 2019-20 and to the best of
our knowledge is original work.
3|Page
Acknowledgement
We give our thanks to HOD Mr. Nitesh Chouhan, Project In-charge Mr. Rohit
Negi and to my college M.L.V. Textile and Engineering College, Bhilwara for their
extreme co-operation.
We are also thankful to all the faculty members, because in the suggestions and
guidance.
Finally, yet importantly, we would like to express our heartfelt thanks to our beloved
parents for their blessings, my friends/classmates for their help and wishes for the
successful completion of this project.
4|Page
Abstract
In this project we have made an system interface in which we are trying to develop
an smart attendance system, which will reduce the overall time taken by the teacher
to take the attendance of class & as well as chances of false attendance will become
negligible.
In our system we are using facial recognition to detect & extract faces of students.
First a student need to sign up in our system in which a student needs to fill some
details of himself/herself & face will be saved in encodings in a csv file database.
Once the student’s data will be saved, the next time system try to match the student’s
face with the existing saved face in the database.
If the face matches the system will mark the attendance of the student otherwise not
Face can be match in our system as an individual & as well as with group of
students.
5|Page
Fig. No. Fig. Name Fig.
Page
1 Facial Feature 8
6 Image Processingg 15
7 System Architecture 17
8 Student 18
Registration
9 Face detection 19
flow chart
10 Facial Recognition 21
process
11 Attendance 22
System
12 Attendance flow 23
13 Detection methods 25
14 Face 28
detection
15 Gray scaling 30
6|Page
16 Nueral 32
Network
17 Nueral 32
network
example
18 Fundamentals 35
step in DIP
19 Signup page 36
20 Image 37
acquistion
21 Image processing 38
22 Image detection 39
23 Image Recognition 40
7|Page
CONTENTS
Candidate Declaration………………………………………………I
Bonafide Certificate………………………………………………..II
Acknowledgement………………………………………………....III
Abstract…………………………………………………………….IV
List Of figures……………………………………………………..6-7
1. INRODUCTION…………………………………………………………………...8
1.1Face Recognition
1.2Image acquisition
1.3Face Detection
1.4Image processing
2. SYSTEM INTERFACE……………………………………………………….......18
2.1Student Registration
2.2Detection of face
2.3Recognition of a face
2.4Attendance Management System
3. LITERATURE SURVEY………………………………………………………….25
3.1Feature Base Approach
3.2PDM
8|Page
4. DIGITAL IMAGE PROCESSING………………………………………………..35
4.1DIP Methods
6. CONCLUSION……………………………………………………………………...46
REFERENCES ……………………………………………………………………..47
9|Page
CHAPTER-1
INTRODUCTION
FACE RECOGNIZATION:
There are two predominant approaches to the face recognition problem: Geometric
(feature based) and photometric (view based). As researcher interest in face
recognition continued, many different algorithms were developed, three of which
have been well studied in face recognition literature.
10 | P a g e
HOW FACIAL RECOGNITION WORKS:
11 | P a g e
Fig 2: Opencv Face recognition working process
In order to build our OpenCV face recognition pipeline, we’ll be applying deep
learning in two key steps:
1. To apply face detection, which detects the presence and location of a face in an
image, but does not identify it.
2. To extract the 128-d feature vectors (called “embedding’s”) that quantify each face
in an image.
12 | P a g e
FACE DETECTION:
13 | P a g e
FACE DETECTION METHODS:
1.Knowledge-Based:-
The knowledge-based method depends on the set of rules, and it is based on human
knowledge to detect the faces. Ex- A face must have a nose, eyes, and mouth within
certain distances and positions with each other. The big problem with these methods
is the difficulty in building an appropriate set of rules. There could be many false
14 | P a g e
positive if the rules were too general or too detailed. This approach alone is
insufficient and unable to find many faces in multiple images.
2.Feature-Based:-
3.Template Matching:-
15 | P a g e
FACE RECOGNITION DIFFICULTIES:
3. head pose
4. illumination conditions
5. expressions
6. facial accessories
7. aging effects
8. Cartoon faces
16 | P a g e
IMAGE ACQUISTION:
• Facial-scan technology can acquire faces from almost any static camera or
video system that generates images of sufficient quality and resolution.
17 | P a g e
IMAGE PROCESSING:
• Images are cropped and color images are normally converted to black and
white in order to facilitate initial comparisons based on gray scale
characteristics.
• First the presence of faces or face in a scene must be detected. Once the face
is detected, it must be localized and Normalization process may be required
to bring the dimensions of the live facial sample in alignment with the one on
the template.
18 | P a g e
CHAPTER-2
SYSTEM INTERFACE
• SYSTEM COMPONENTS:
1. Student Registration
2. Face Detection
3. Face Recognition
o Feature Extraction
o Feature Classification
19 | P a g e
• SYSTEM ARCHITECTURE:
20 | P a g e
STUDENT REGISTRATION:
21 | P a g e
FACE DETECTION:
22 | P a g e
Now this resize image will be converted into grayscale image.
Now we use the Har Casscade classifier algorithm to extract the facial features
of face.
23 | P a g e
FACE RECOGNITION:
24 | P a g e
ATTENDANCE SYSTEM:
Now the student image have to go through with face detection and face
recognition phase.
25 | P a g e
If there is a successful match or true result in system with existing image in
database then the student attendance will be recorded in system and saved in
the details entered by the user.
26 | P a g e
CHAPTER-4
LITERATURE SURVEY
Face detection is a computer technology that determines the location and size of human
face in arbitrary (digital) image. The facial features are detected and any other objects
like trees, buildings and bodies etc. are ignored from the digital image.
It can be regarded as a specific case of object-class detection, where the task is finding
the location and sizes of all objects in an image that belong to a given class. Face
detection, can be regarded as a more general case of face localization.
In face localization, the task is to find the locations and sizes of a known number of
faces (usually one).
Basically there are two types of approaches to detect facial part in the given image i.e.
feature base and image base approach.
Feature base approach tries to extract features of the image and match it against the
knowledge of the face features. While image base approach tries to get best match
between training and testing images.
27 | P a g e
Fig 13: Detection methods
Active Shape Model Active shape models focus on complex non-rigid features like
actual physical and higher level appearance of features Means that Active Shape Models
(ASMs) are aimed at automatically locating landmark points that define the shape of any
statistically modelled object in an image.
When of facial features such as the eyes, lips, nose, mouth and eyebrows. The training
stage of an ASM involves the building of a statistical
a) facial model from a training set containing images with manually annotated
landmarks.
ASMs is classified into three groups i.e. snakes, PDM, Deformable templates
28 | P a g e
1.1)Snakes:The first type uses a generic active contour called snakes, first
introduced by Kass et al. in 1987 Snakes are used to identify head boundaries
[8,9,10,11,12]. In order to achieve the task, a snake is first initialized at the proximity
around a head boundary.
It then locks onto nearby edges and subsequently assume the shape of the head. The
evolution of a snake is achieved by minimizing an energy function, Esnake (analogy
with physical systems), denoted asEsnake = Einternal + EExternal WhereEinternal
and EExternal are internal and external energy functions.Internal energy is the part
that depends on the intrinsic properties of the snake and defines its natural evolution.
The typical natural evolution in snakes is shrinking or expanding.
The idea is that once you represent shapes as vectors, you can apply standard
statistical methods to them just like any other multivariate object.
These models learn allowable constellations of shape points from training examples
and use principal components to build what is called a Point Distribution Model.
These have been used in diverse ways, for example for categorizing Iron Age
broaches.
Ideal Point Distribution Models can only deform in ways that are characteristic of
the object.
Coot and his colleagues were seeking models which do exactly that so if a beard,
say, covers the chin, the shape model can override the image" to approximate the
position of the chin under the beard.
It was therefore natural (but perhaps only in retrospect) to adopt Point Distribution
Models.
29 | P a g e
LOW LEVEL ANALYSIS:
Based on low level visual features like color, intensity, edges, motion etc. Skin Color
Base Color is avital feature of human faces.
Using skin-color as a feature for tracking a face has several advantages. Color
processing is much faster than processing other facial features. Under certain lighting
conditions, color is orientation invariant.
This property makes motion estimation much easier because only a translation
model is needed for motion estimation.
30 | P a g e
Fig 14: Face Detection
Majorly three different face detection algorithms are available based on RGB,
Ycb Cr, and HIS color space models. In the implementation of the algorithms there
are three main steps viz.
31 | P a g e
(1) Classify the skin region in the color space.
MOTION BASE:
When use of video sequence is available, motion information can be used to locate
moving objects. Moving silhouettes like face and body parts can be extracted by
simply thresholding accumulated frame differences. Besides face regions, facial
features can be located by frame differences.
Gray information within a face can also be treat as important features. Facial features
such as eyebrows, pupils, and lips appear generally darker than their surrounding
facial regions.
Various recent feature extraction algorithms search for local gray minima within
segmented facial regions.
In these algorithms, the input images are first enhanced by contrast-stretching and
gray-scale morphological routines to improve the quality of local dark patches and
thereby make detection easier.
32 | P a g e
Fig 15: Gray Scaling of an image
Edge Base:
Face detection based on edges was introduced by Sakai et al. This work was
based on analyzing line drawings of the faces from photographs, aiming to
locate facial features.
Than later Craw et al. proposed a hierarchical framework based on Sakai work
to trace a human head outline. Then after remarkable works were carried out
by many researchers in this specific area.
Method suggested by Anile and Devarajan was very simple and fast.
33 | P a g e
Neural Network:
Neural networks gaining much more attention in many pattern recognition
problems, such as OCR, object recognition, and autonomous robot driving. Since
face detection can be treated as a two class pattern recognition problem, various
neural network algorithms have been proposed.
The advantage of using neural networks for face detection is the feasibility of
training a system to capture the complex class conditional density of face
patterns.
In early days most hierarchical neural network was proposed by Agui et al. [43].
The first stage having two parallel subnetworks in which the inputs are filtered
intensity values from an original image.
The inputs to the second stage network consist of the outputs from the sub
networks and extracted feature values. An output at the second stage shows the
presence of a face in the input region.
34 | P a g e
Fig 16: Basic Neural Network
35 | P a g e
CHAPTER-4
DIGITAL IMAGE PROCESSING
In this second application area, interest focuses on procedures for extracting image
information in a form suitable for computer processing.
Image:
An image refers a 2D light intensity function f(x, y), where(x, y) denotes spatial
coordinates and the value of f at any point (x, y) is proportional to the brightness or
gray levels of the image at that point.
A digital image is an image f(x, y) that has been discretized both in spatial
coordinates and brightness. The elements of such a digital array are called image
elements or pixels.
36 | P a g e
A simple image model:
The storage and processing requirements increase rapidly with the spatial
resolution and the number of gray levels.
37 | P a g e
Fundamental steps in image processing are:
2. Image pre-processing: to improve the image in ways that increases the chances
for success of other processes.
3. Image segmentation: to partitions an input image into its constituent parts of
objects.
4. Image segmentation: to convert the input data to a from suitable for computer
processing.
Segmentation Representation
and description
Pre-processing
Recognition
Image
And
acquisition Knowledge base
problem
38 | P a g e
CHAPTER-5
PRACTICAL IMPLEMENTATION
• SIGNUP PAGE:
39 | P a g e
• IMAGE ACQUISTION:
40 | P a g e
• IMAGE PROCESSING:
41 | P a g e
• FACE DETECTION:
42 | P a g e
• IMAGE RECOGNITION:
43 | P a g e
• MULTIPLE FACE RECOGNITION:
44 | P a g e
MARKING THE ATTENDANCE:
45 | P a g e
CHAPTER-6
CONCLUSION
46 | P a g e
REFERENCES
[1] https://en.m.Wikipedia.org/FacialRecognitionsystem
[2] https://www.Encyclopedia.com/facialrecognition
[3] https://web.standard.edu/facedetectionproject
47 | P a g e