Professional Documents
Culture Documents
As explained previously in the scope, this thesis will also create a prototype
about face recognition system. The face recognition system itself has several
modules that are working together as one to make the system runs smoothly.
However, the prototype will not cover all of the modules. The prototype will
The sub-chapters below are the general design for face recognition system.
Instead of the face recognition system design, I will also give some explanation
There are five general phases in face recognition system. The system must
execute all the phase before finally get into the expected result. The phases are
[29]:
1. Capture image
3. Feature Extraction
46
4. Template comparison
camera or manually input the desired image into the prototype system.
different scales and looking for some simple patterns that denote the
presence of a face. After the system detected a face, it will then produce a
sub-image (image chip) that is scaled such that the face appears in the
Haar Classifier. [30] This algorithm scans and image and create a
The square bounding boxes indicate the detected faces in the image. It is
The code snipped above is the way how to declare the Haar Classifier and
certain points on the face such as the corner and centre of the eyes, tip of
each face. The template consists of a reduced set of data that represent the
There are two algorithms that can be used for this module, such as:
the face are located by comparing Gabor jets extracted from the
templates). [29] There are two ways of comparing the templates based on
53
template match all templates in the database and get the closest match (1 :
compared to one data entry in the database that is the claimed identity (1 :
1).
score resulted in the previous step. [29] The ground rules applied to the
how the application should behave based on the desired security and
operational consideration.
product for biometrics (fingerprint and face recognition) system, computer vision
This application is able to capture image using cameras (web-cam) as its external
video source and also to read captured image from external file (png, bmp, jpg,
There are two types of execution modes that the application has, such as:
1. Enrolment
The enrolment mode happens when the users register their face images. The
system will then check whether there is a face in it or not and do the feature
extraction. After that the extraction result will be wrote into the template
database.
2. Matching
This mode performs the algorithm to match the new acquired face with the
1.0
Enroll User
Image
Capturing
2.0
Face
Detection
3.0
Stored Feature
Extraction
Face Images
Database
4.0
Template
Load
Comparison
5.0
Declare
Matches
4.2.2 Flowchart
The face recognition implementation is mainly divided into two sub tasks. The
first one is face enrolling and the second one is the face recognition system itself.
1. Face Enrolling
Face enrolling happens when a candidate or recognition subject first use the
system. Enrolling their face image means the system will take their picture
using the installed camera. Next, the system will then automatically detect
the subject’s face and extract the image using preferred algorithm (PCA or
EBGM). It will then produce a template image and it will be stored into the
face database.
2. Face Recognition
Face recognition system works when the subject already enrolled their face
image into the system. Then, the system will also capture the subject’s face
through the camera, detect the face, and apply the feature extraction functions
on it to get the template. Next, the new generated template will be compared
As it has been told previously, the prototype will be covered the image
Image acquisition is the first step that has to be done in this prototype.
camera.
I use the provided function to capture image from the webcam, thus the
To be able to detect faces from the captured image is the main purpose of
search window that slide through the image and check whether a certain
region of an image looks like a face or not. It quickly discards the other
The basic of this method are the haar-like features and a large set of very
simple weak classifier that use a single feature to define a certain image
(shape of the feature), its coordinate relative to the search window origin
The search window quickly scanning the first classifier on the cascade, if
the classifier returns false then the computation on that window also ends
true, then the window will be passed down to the next classifier in the
cascade to do the exact same thing. When all classifier returns true for
that window, then the result will returns true also for that certain window
(face detected).
The more a window looks like a face, the more the classifiers to be
computed and the longer it takes to classify that window. Thus, if the
62
window is not a face the classifier will quickly reject it after considering
1.0
Enroll User
Image
Capturing
2.0
Face
Detection
3.0
Display detected
face by creating
bounding box
Input image
Sum pixel
calculation
Rectangular node
selection
Haar-like features
comparisson
Face Detection
4.4.3 Flowchart
start
Image acquisition
Haar classifier
image calculation No
process
Face detected?
yes
Display detected
face using
bounding box
Finish
Symbol Description
the system.
Symbol Description
chart.
database.
System solution is basically the list of tools needed to develop the prototype. It is
divided into several types such as, implementation tools, development tools, and
in order to build the prototype. The prototype will be built under C++
features.
Besides C++ as the basic programming language, the prototype will also
this software.
2. Adobe Photoshop CS
I use this software to edit the image (cropping) to get a better view
of the image.
69
to be able to run the system smoothly. The system will need a camera
below: