SlideShare a Scribd company logo
1 of 20
Face recognition using PCA
R.SINDHI MADHURI
A.ANURAG REDDY
G.USHASWI
ROHIT UPADHYAY
•
•
•
•
•

IDEA
OPERATIONS

MERITS
DEMERITS
APPLICATIONS
PCA
Eigenfaces: the idea
Eigenvectors and Eigenvalues
Learning Eigenfaces from training sets of faces
Co-variance

Recognition and reconstruction
PCA means Principle Component Analysis.

PCA was invented in 1901 by Karl Pearson
PCA involves the calculation of the eigenvalue
decomposition of a data covariance matrix or
singular value decomposition of a data matrix,
usually after mean centering the data for each
attribute.
Three basic steps
involved in PCA are:
Identification
{by eigen faces}
Recognition
{matching eigen faces}
Categorization
{by grouping}
In Digital Image Processing, we convert 2-D images into matrix form for clear analysis.
Every matrix can be represented with the help of its eigen vectors.
An eigenvector is a vector that obeys the following rule:

Av   v

Where A is a matrix , is a scalar (called the eigenvalue)
e.g. A   2

3 one eigenvector of is
 3  since
  
 2 1


2
 2 3  3 12
3
 2 1  2    8   4   2 

   
 

so for this eigenvector of this matrix the eigenvalue is 4
Think of a face as being a weighted combination of some “component” or
“basis” faces
These basis faces are called eigen faces.

-8029

2900

1751

1445

4238

6193
 a1 


a2 




a 2 

 N 

 d1 


 d2 




d 2 

 N 

 b1 


b2 




b 2 

 N 

 c1 


c2 




c 2 

 N 

 e1 


e2 




e 2 

 N 

 f1 


 f2 




f 2

 N 
We compute the average face
 a1  b1 

1  a2  b2 
m
M

a 2 b 2 
N
 N

 h1 

 h2 
,


 hN 2 


where M  8
Then subtract it from the training faces
 a1  m1 
 b1  m1 
 c1  m1 
 d1  m1 








 a2  m2  , b   b2  m2  , c   c2  m2  , d   d 2  m2  ,
am 
m
m
m












a 2  m 2 

b 2  m 2 

c 2  m 2 

d 2  m 2 

N 
N 
N 
N 
 N
 N
 N
 N
 e1  m1 


e2  m2 
em  
,



e 2  m 2 

N 
 N

 f1  m1 
 g1  m1 
 h1  m1 






f 2  m2 
g 2  m2 
h2  m2 
fm  
, gm  
, hm  









f 2 m 2

g 2  m 2 

h 2  m 2 

N 
N 
N 
 N
 N
 N
Now we build the matrix which is N2 by M
A   am bm cm d m em f m g m hm 



The covariance matrix which is N2 by N2


Cov  AA
The covariance matrix has eigenvectors
covariance matrix
eigenvectors
eigenvalues

.617 .615 
C

.615 .717 
 .735

 .678 

1  

The covariance of two variables is:
n

.678

2  
.735




Eigenvectors with larger eigenvectors correspond to
1  0.049

2  1.284

directions in which the data varies more
Finding the eigenvectors and eigenvalues of the
covariance matrix for a set of data is termed
principle components analysis

cov( x1 , x2 ) 

i
( x1i  x1 )( x2 x2 )

i 1

n 1
A face image can be projected into this face
space by
pk = UT(xk – m) where k=1,…,m
To recognize a face

Subtract the average face from it

 r1 
 
r2
 
 
 
r 2 
 N 

 r1  m1 


r2  m2 
rm  



r 2  m 2 

N 
 N
Compute its projection onto the face space U

 U

Compute the distance in the face  2
i
space between the face and all
known faces

Compute the threshold





 rm 

   i

1
  max i   j
2

2

for i  1.. M

 for i, j  1.. M
Distinguish between
• If    then it’s not a face; the distance between
the face and its reconstruction is larger than
threshold
• If    and min  i    then it’s a new face
• If    and  i   , (i  1.. M ) then it’s a known
face because the distance in the face space
between the face and all known faces is larger than
threshold
Image is reconstructed in the 3rd case, if
   and 

i

  , (i  1.. M )

Using the MATLAB code, original image and reconstructed image are shown.
Ex:
Relatively simple
Fast
Robust
Expression
- Change in feature
location and shape.
Variations in lighting
conditions
Different lighting conditions
for enrolment and query.
Bright light causing image
saturation.
Various potential
applications, such as
•
•

Person identification.
Human-computer
interaction.
• Security systems.
Face Recognition using PCA-Principal Component Analysis using MATLAB

More Related Content

What's hot

Facial expression recognition based on image feature
Facial expression recognition based on image featureFacial expression recognition based on image feature
Facial expression recognition based on image featureTasnim Tara
 
Machine learning in image processing
Machine learning in image processingMachine learning in image processing
Machine learning in image processingData Science Thailand
 
Automated Face Detection System
Automated Face Detection SystemAutomated Face Detection System
Automated Face Detection SystemAbhiroop Ghatak
 
Introduction to Deep face detection and recognition
Introduction to Deep face detection and recognitionIntroduction to Deep face detection and recognition
Introduction to Deep face detection and recognitionApache MXNet
 
Face detection ppt
Face detection pptFace detection ppt
Face detection pptPooja R
 
Face recognization
Face recognizationFace recognization
Face recognizationleenak770
 
Modern face recognition with deep learning
Modern face recognition with deep learningModern face recognition with deep learning
Modern face recognition with deep learningmarada0033
 
Emotion detection using cnn.pptx
Emotion detection using cnn.pptxEmotion detection using cnn.pptx
Emotion detection using cnn.pptxRADO7900
 
Introduction to Grad-CAM (complete version)
Introduction to Grad-CAM (complete version)Introduction to Grad-CAM (complete version)
Introduction to Grad-CAM (complete version)Hsing-chuan Hsieh
 
Computer Vision - cameras
Computer Vision - camerasComputer Vision - cameras
Computer Vision - camerasWael Badawy
 
Detection and recognition of face using neural network
Detection and recognition of face using neural networkDetection and recognition of face using neural network
Detection and recognition of face using neural networkSmriti Tikoo
 

What's hot (20)

Facial expression recognition based on image feature
Facial expression recognition based on image featureFacial expression recognition based on image feature
Facial expression recognition based on image feature
 
Face recognition
Face recognition Face recognition
Face recognition
 
Eigenfaces
EigenfacesEigenfaces
Eigenfaces
 
Image processing Presentation
Image processing PresentationImage processing Presentation
Image processing Presentation
 
Face recognition
Face recognitionFace recognition
Face recognition
 
Machine learning in image processing
Machine learning in image processingMachine learning in image processing
Machine learning in image processing
 
Lec14 eigenface and fisherface
Lec14 eigenface and fisherfaceLec14 eigenface and fisherface
Lec14 eigenface and fisherface
 
Human Emotion Recognition
Human Emotion RecognitionHuman Emotion Recognition
Human Emotion Recognition
 
Automated Face Detection System
Automated Face Detection SystemAutomated Face Detection System
Automated Face Detection System
 
Face recogntion
Face recogntionFace recogntion
Face recogntion
 
Introduction to Deep face detection and recognition
Introduction to Deep face detection and recognitionIntroduction to Deep face detection and recognition
Introduction to Deep face detection and recognition
 
Face detection ppt
Face detection pptFace detection ppt
Face detection ppt
 
Face recognization
Face recognizationFace recognization
Face recognization
 
Modern face recognition with deep learning
Modern face recognition with deep learningModern face recognition with deep learning
Modern face recognition with deep learning
 
Emotion detection using cnn.pptx
Emotion detection using cnn.pptxEmotion detection using cnn.pptx
Emotion detection using cnn.pptx
 
Introduction to Grad-CAM (complete version)
Introduction to Grad-CAM (complete version)Introduction to Grad-CAM (complete version)
Introduction to Grad-CAM (complete version)
 
Computer Vision - cameras
Computer Vision - camerasComputer Vision - cameras
Computer Vision - cameras
 
Detection and recognition of face using neural network
Detection and recognition of face using neural networkDetection and recognition of face using neural network
Detection and recognition of face using neural network
 
Facial Recognition Technology
Facial Recognition TechnologyFacial Recognition Technology
Facial Recognition Technology
 
Final year ppt
Final year pptFinal year ppt
Final year ppt
 

Similar to Face Recognition using PCA-Principal Component Analysis using MATLAB

2012 mdsp pr09 pca lda
2012 mdsp pr09 pca lda2012 mdsp pr09 pca lda
2012 mdsp pr09 pca ldanozomuhamada
 
Human Face Detection Based on Combination of Logistic Regression, Distance of...
Human Face Detection Based on Combination of Logistic Regression, Distance of...Human Face Detection Based on Combination of Logistic Regression, Distance of...
Human Face Detection Based on Combination of Logistic Regression, Distance of...IJCSIS Research Publications
 
On image intensities, eigenfaces and LDA
On image intensities, eigenfaces and LDAOn image intensities, eigenfaces and LDA
On image intensities, eigenfaces and LDARaghu Palakodety
 
A Hybrid SVD Method Using Interpolation Algorithms for Image Compression
A Hybrid SVD Method Using Interpolation Algorithms for Image CompressionA Hybrid SVD Method Using Interpolation Algorithms for Image Compression
A Hybrid SVD Method Using Interpolation Algorithms for Image CompressionCSCJournals
 
Aaa ped-17-Unsupervised Learning: Dimensionality reduction
Aaa ped-17-Unsupervised Learning: Dimensionality reductionAaa ped-17-Unsupervised Learning: Dimensionality reduction
Aaa ped-17-Unsupervised Learning: Dimensionality reductionAminaRepo
 
Principal Components Analysis, Calculation and Visualization
Principal Components Analysis, Calculation and VisualizationPrincipal Components Analysis, Calculation and Visualization
Principal Components Analysis, Calculation and VisualizationMarjan Sterjev
 
Introducing New Parameters to Compare the Accuracy and Reliability of Mean-Sh...
Introducing New Parameters to Compare the Accuracy and Reliability of Mean-Sh...Introducing New Parameters to Compare the Accuracy and Reliability of Mean-Sh...
Introducing New Parameters to Compare the Accuracy and Reliability of Mean-Sh...sipij
 
PosterPresentations.com-3 6x48-Template-V5 - 副本
PosterPresentations.com-3 6x48-Template-V5 - 副本PosterPresentations.com-3 6x48-Template-V5 - 副本
PosterPresentations.com-3 6x48-Template-V5 - 副本Yijun Zhou
 
Cluster analysis using k-means method in R
Cluster analysis using k-means method in RCluster analysis using k-means method in R
Cluster analysis using k-means method in RVladimir Bakhrushin
 
DimensionalityReduction.pptx
DimensionalityReduction.pptxDimensionalityReduction.pptx
DimensionalityReduction.pptx36rajneekant
 
Dimension Reduction Introduction & PCA.pptx
Dimension Reduction Introduction & PCA.pptxDimension Reduction Introduction & PCA.pptx
Dimension Reduction Introduction & PCA.pptxRohanBorgalli
 
A STUDY AND ANALYSIS OF DIFFERENT EDGE DETECTION TECHNIQUES
A STUDY AND ANALYSIS OF DIFFERENT EDGE DETECTION TECHNIQUESA STUDY AND ANALYSIS OF DIFFERENT EDGE DETECTION TECHNIQUES
A STUDY AND ANALYSIS OF DIFFERENT EDGE DETECTION TECHNIQUEScscpconf
 
5 DimensionalityReduction.pdf
5 DimensionalityReduction.pdf5 DimensionalityReduction.pdf
5 DimensionalityReduction.pdfRahul926331
 
2012 mdsp pr11 ica part 2 face recognition
2012 mdsp pr11 ica part 2 face recognition2012 mdsp pr11 ica part 2 face recognition
2012 mdsp pr11 ica part 2 face recognitionnozomuhamada
 

Similar to Face Recognition using PCA-Principal Component Analysis using MATLAB (20)

2012 mdsp pr09 pca lda
2012 mdsp pr09 pca lda2012 mdsp pr09 pca lda
2012 mdsp pr09 pca lda
 
Human Face Detection Based on Combination of Logistic Regression, Distance of...
Human Face Detection Based on Combination of Logistic Regression, Distance of...Human Face Detection Based on Combination of Logistic Regression, Distance of...
Human Face Detection Based on Combination of Logistic Regression, Distance of...
 
On image intensities, eigenfaces and LDA
On image intensities, eigenfaces and LDAOn image intensities, eigenfaces and LDA
On image intensities, eigenfaces and LDA
 
A Hybrid SVD Method Using Interpolation Algorithms for Image Compression
A Hybrid SVD Method Using Interpolation Algorithms for Image CompressionA Hybrid SVD Method Using Interpolation Algorithms for Image Compression
A Hybrid SVD Method Using Interpolation Algorithms for Image Compression
 
Aaa ped-17-Unsupervised Learning: Dimensionality reduction
Aaa ped-17-Unsupervised Learning: Dimensionality reductionAaa ped-17-Unsupervised Learning: Dimensionality reduction
Aaa ped-17-Unsupervised Learning: Dimensionality reduction
 
Ijcatr04041016
Ijcatr04041016Ijcatr04041016
Ijcatr04041016
 
Principal Components Analysis, Calculation and Visualization
Principal Components Analysis, Calculation and VisualizationPrincipal Components Analysis, Calculation and Visualization
Principal Components Analysis, Calculation and Visualization
 
Introducing New Parameters to Compare the Accuracy and Reliability of Mean-Sh...
Introducing New Parameters to Compare the Accuracy and Reliability of Mean-Sh...Introducing New Parameters to Compare the Accuracy and Reliability of Mean-Sh...
Introducing New Parameters to Compare the Accuracy and Reliability of Mean-Sh...
 
ppt
pptppt
ppt
 
PosterPresentations.com-3 6x48-Template-V5 - 副本
PosterPresentations.com-3 6x48-Template-V5 - 副本PosterPresentations.com-3 6x48-Template-V5 - 副本
PosterPresentations.com-3 6x48-Template-V5 - 副本
 
Cluster analysis using k-means method in R
Cluster analysis using k-means method in RCluster analysis using k-means method in R
Cluster analysis using k-means method in R
 
DimensionalityReduction.pptx
DimensionalityReduction.pptxDimensionalityReduction.pptx
DimensionalityReduction.pptx
 
overviewPCA
overviewPCAoverviewPCA
overviewPCA
 
Dimension Reduction Introduction & PCA.pptx
Dimension Reduction Introduction & PCA.pptxDimension Reduction Introduction & PCA.pptx
Dimension Reduction Introduction & PCA.pptx
 
Lda
LdaLda
Lda
 
A STUDY AND ANALYSIS OF DIFFERENT EDGE DETECTION TECHNIQUES
A STUDY AND ANALYSIS OF DIFFERENT EDGE DETECTION TECHNIQUESA STUDY AND ANALYSIS OF DIFFERENT EDGE DETECTION TECHNIQUES
A STUDY AND ANALYSIS OF DIFFERENT EDGE DETECTION TECHNIQUES
 
5 DimensionalityReduction.pdf
5 DimensionalityReduction.pdf5 DimensionalityReduction.pdf
5 DimensionalityReduction.pdf
 
Understandig PCA and LDA
Understandig PCA and LDAUnderstandig PCA and LDA
Understandig PCA and LDA
 
2012 mdsp pr11 ica part 2 face recognition
2012 mdsp pr11 ica part 2 face recognition2012 mdsp pr11 ica part 2 face recognition
2012 mdsp pr11 ica part 2 face recognition
 
MSE.pptx
MSE.pptxMSE.pptx
MSE.pptx
 

Recently uploaded

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbuapidays
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 

Recently uploaded (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

Face Recognition using PCA-Principal Component Analysis using MATLAB

  • 1. Face recognition using PCA R.SINDHI MADHURI A.ANURAG REDDY G.USHASWI ROHIT UPADHYAY
  • 3. PCA Eigenfaces: the idea Eigenvectors and Eigenvalues Learning Eigenfaces from training sets of faces Co-variance Recognition and reconstruction
  • 4. PCA means Principle Component Analysis. PCA was invented in 1901 by Karl Pearson PCA involves the calculation of the eigenvalue decomposition of a data covariance matrix or singular value decomposition of a data matrix, usually after mean centering the data for each attribute.
  • 5. Three basic steps involved in PCA are: Identification {by eigen faces} Recognition {matching eigen faces} Categorization {by grouping}
  • 6. In Digital Image Processing, we convert 2-D images into matrix form for clear analysis. Every matrix can be represented with the help of its eigen vectors. An eigenvector is a vector that obeys the following rule: Av   v Where A is a matrix , is a scalar (called the eigenvalue) e.g. A   2 3 one eigenvector of is  3  since     2 1   2  2 3  3 12 3  2 1  2    8   4   2         so for this eigenvector of this matrix the eigenvalue is 4
  • 7. Think of a face as being a weighted combination of some “component” or “basis” faces These basis faces are called eigen faces. -8029 2900 1751 1445 4238 6193
  • 8.  a1    a2      a 2    N   d1     d2      d 2    N   b1    b2      b 2    N   c1    c2      c 2    N   e1    e2      e 2    N   f1     f2      f 2   N 
  • 9. We compute the average face  a1  b1   1  a2  b2  m M  a 2 b 2  N  N  h1    h2  ,    hN 2   where M  8
  • 10. Then subtract it from the training faces  a1  m1   b1  m1   c1  m1   d1  m1           a2  m2  , b   b2  m2  , c   c2  m2  , d   d 2  m2  , am  m m m             a 2  m 2   b 2  m 2   c 2  m 2   d 2  m 2   N  N  N  N   N  N  N  N  e1  m1    e2  m2  em   ,    e 2  m 2   N   N  f1  m1   g1  m1   h1  m1        f 2  m2  g 2  m2  h2  m2  fm   , gm   , hm            f 2 m 2  g 2  m 2   h 2  m 2   N  N  N   N  N  N
  • 11. Now we build the matrix which is N2 by M A   am bm cm d m em f m g m hm    The covariance matrix which is N2 by N2  Cov  AA
  • 12. The covariance matrix has eigenvectors covariance matrix eigenvectors eigenvalues .617 .615  C  .615 .717   .735   .678  1   The covariance of two variables is: n .678 2   .735   Eigenvectors with larger eigenvectors correspond to 1  0.049 2  1.284 directions in which the data varies more Finding the eigenvectors and eigenvalues of the covariance matrix for a set of data is termed principle components analysis cov( x1 , x2 )  i ( x1i  x1 )( x2 x2 )  i 1 n 1
  • 13. A face image can be projected into this face space by pk = UT(xk – m) where k=1,…,m To recognize a face Subtract the average face from it  r1    r2       r 2   N   r1  m1    r2  m2  rm      r 2  m 2   N   N
  • 14. Compute its projection onto the face space U  U Compute the distance in the face  2 i space between the face and all known faces Compute the threshold    rm     i 1   max i   j 2 2 for i  1.. M  for i, j  1.. M
  • 15. Distinguish between • If    then it’s not a face; the distance between the face and its reconstruction is larger than threshold • If    and min  i    then it’s a new face • If    and  i   , (i  1.. M ) then it’s a known face because the distance in the face space between the face and all known faces is larger than threshold
  • 16. Image is reconstructed in the 3rd case, if    and  i   , (i  1.. M ) Using the MATLAB code, original image and reconstructed image are shown. Ex:
  • 17. Relatively simple Fast Robust Expression - Change in feature location and shape.
  • 18. Variations in lighting conditions Different lighting conditions for enrolment and query. Bright light causing image saturation.
  • 19. Various potential applications, such as • • Person identification. Human-computer interaction. • Security systems.