MATLAB Based Project on Face Detection s
MATLAB Based Project on Face Detection s
(Deemed to be University)
DEPARTMENT OF ELECTRICAL
AND ELECTRONICS ENGINNERING
A Project Based Lab Report
On
SUBMITTED BY:
NAME IDNO
KL UNIVERSITY
Green fields, Vaddeswaram – 522 502
Guntur Dt., AP, India.
1
DEPARTMENT OF ELECTRICAL
AND ELETRONICS ENGINEERING
CERTIFICATE
2
ACKNOWLEDGEMENTS
I express the sincere gratitude to our principal ProfDr.K. SUBBA RAO for
his administration towards our academic growth.
V.SRI RAM
Regd . No:180060029
180069030
3
ABSTRACT
Face detection is an easy and simple task for humans, but not
so for computers. Face detection is the process of identifying
one or more human faces in images or videos. It plays an
important part in many biometric, security and surveillance
systems, as well as image and video indexing systems. There
are different types of algorithms used in face detection. Here,
we have used Viola-Jones algorithm for face detection using
MATLAB program. This include detection of not only face but
also eyes and upper body. In order to detect above things we
use different commands in it. While initially a form of
computer application, it has seen wider uses in recent times on
mobile platforms and in other forms of technology, such as
robotics. It is typically used as access control in security
systems and can be compared to other biometrics and face and
eyes recognition systems. Although the accuracy of facial
recognition system as a biometric technology is lower than iris
recognition and fingerprint recognition, it is widely adopted due
to its contactless and non-invasive process.
4
INDEX
1 Introduction 6
3 Apparatus 9
4 Procedure 10
5 Matlab Implementation 12
8 Conclusion 16
9 References 17
5
INTRODUCTION
Object detection and tracking are important in many computer vision
Presented here is an face detection using MATLAB system that can detect not only a
Face detection is an easy and simple task for humans, but not so for computers. It
has been regarded as the most complex and challenging problem in the field of computer
vision due to large intra-class variations caused by the changes in facial appearance,
lighting and expression. Such variations result in the face distribution to be highly
nonlinear and complex in any space that is linear to the original image space.
Face detection is the process of identifying one or more human faces in images or
videos. It plays an important part in many biometric, security and surveillance systems,
This face detection using MATLAB program can be used to detect a face, eyes
R2012a. 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
6
Fig: 1
VIOLA-JONES ALGORITHM
3. Detects features
7
AIM
8
APPARATUS
1. 2012Ra
2. 2018Ra
>Command window
>editor window
>run
9
Procedure
10
all_Images(:,(i-
1)*10+j)=reshape(image_Container,size(image_Container,1)*
size(image_Container,2),1);
end
display('Doading Database');
cd ..
end
numeric_Image = uint8(all_Images);
end
loaded = 1;
output_value = numeric_Image;
11
MATLAB IMPLEMENTATION
loaded_Image=load_database();
random_Index=round(400*rand(1,1));
random_Image=loaded_Image(:,random_Index);
rest_of_the_images=loaded_Image(:,[1:random_Index-1
random_Index+1:end]);
image_Signature=20;
white_Image=uint8(ones(1,size(rest_of_the_images,2)));
mean_value=uint8(mean(rest_of_the_images,2));
mean_Removed=rest_of_the_images-
uint8(single(mean_value)*single(white_Image));
L=single(mean_Removed)'*single(mean_Removed);
[V,D]=eig(L);
V=single(mean_Removed)*V;
V=V(:,end:-1:end-(image_Signature-1));
all_image_Signatire=zeros(size(rest_of_the_images,2),image_Signature);
for i=1:size(rest_of_the_images,2);
all_image_Signatire(i,:)=single(mean_Removed(:,i))'*V;
end
subplot(121);
imshow(reshape(random_Image,112,92));
title('Looking for this Face','FontWeight','bold','Fontsize',16,'color','red');
subplot(122);
p=random_Image-mean_value;
s=single(p)'*V;
z=[];
for i=1:size(rest_of_the_images,2)
z=[z,norm(all_image_Signatire(i,:)-s,2)];
if(rem(i,20)==0),imshow(reshape(rest_of_the_images(:,i),112,92)),end;
drawnow;
end
[a,i]=min(z);
subplot(122);
imshow(reshape(rest_of_the_images(:,i),112,92));
title('Recognition Completed','FontWeight','bold','Fontsize',16,'color','red');
12
Screen Shots:
13
14
> Advantages
1. Safety
3. security
4. Fully automated
5. Cost efficiency
➢ Dis advantages
. 1. Surveillance Angle
2. Data Storage
. 4. Legislation
15
CONCLUSION
16
REFERENCES
1) https://www.mathworks.com/discovery/face-recognition.html
2) https://www.mathworks.com/help/vision/examples/face-
detection-and-tracking-using-the-klt-algorithm.html
3) https://www.electronicsforu.com/electronics-
projects/software-projects-ideas/real-time-face-detection-
using-matlab
4) https://www.mathworks.in/matlabcentral/fileexchange/36855-
face-parts-detection
17
18