Top Banner
吳吳吳 吳吳吳 Face Detection Based on Template Matching and 2DPCA Algorithm 2009/01/14
17

吳家宇 吳明翰 Face Detection Based on Template Matching and 2DPCA Algorithm 2009/01/14.

Dec 20, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 吳家宇 吳明翰 Face Detection Based on Template Matching and 2DPCA Algorithm 2009/01/14.

吳家宇吳明翰

Face Detection Based on Template Matching and 2DPCA Algorithm

Face Detection Based on Template Matching and 2DPCA Algorithm

2009/01/14

Page 2: 吳家宇 吳明翰 Face Detection Based on Template Matching and 2DPCA Algorithm 2009/01/14.

IntroductionIntroductionIntroductionIntroduction• Face recognition

• Face detection• Feature extraction• Feature matching

• Related Methods• Skin-based detection method• Neural networks method• SVM

• In this paper• Template matching algorithm• 2DPCA algorithm

Page 3: 吳家宇 吳明翰 Face Detection Based on Template Matching and 2DPCA Algorithm 2009/01/14.

Face DetectionFace DetectionFace DetectionFace Detection

Page 4: 吳家宇 吳明翰 Face Detection Based on Template Matching and 2DPCA Algorithm 2009/01/14.

• First step• Preprocess the image

• Normalize• Histogram equalization• Luminance compensation

• Second step• Search rectangle regions

• Last step • Detect every detection window hierarchically

Face Detection AlgorithmFace Detection AlgorithmFace Detection AlgorithmFace Detection Algorithm

Page 5: 吳家宇 吳明翰 Face Detection Based on Template Matching and 2DPCA Algorithm 2009/01/14.

FlowchartFlowchartFlowchartFlowchart

Page 6: 吳家宇 吳明翰 Face Detection Based on Template Matching and 2DPCA Algorithm 2009/01/14.

• Resize the image– Resized into 400*300 pixel

• Histogram equalize the image

Pre-ProcessingPre-ProcessingPre-ProcessingPre-Processing

Page 7: 吳家宇 吳明翰 Face Detection Based on Template Matching and 2DPCA Algorithm 2009/01/14.

• Two-eye template• Choose 30 standard face images and cut out a pair of eyes regions• Get a 20*10 pixel two-eye template via calculating average number to many couples of eyes

regions

• Face template• Enlarged nearby based on the eyes template and construct 20*25 pixel face template• Most non-face image blocks which interrelated coefficient is less than value T are discarded

Template MatchingTemplate MatchingTemplate MatchingTemplate Matching

Two-eye template Face template

•Denotes separately •a gray matrix •average value•Standard deviation

Page 8: 吳家宇 吳明翰 Face Detection Based on Template Matching and 2DPCA Algorithm 2009/01/14.

• PCA– Matrices-to-vector conversion

• High dimensional vector space• Difficult to evaluate covariance matrix• Time-consuming

• 2DPCA– Directly computes eigenvectors of image covariance matrix– More efficiently than PCA– Easier to evaluate covariance matrix– Less time to determine the corresponding eigenvectors

Comparison between PCA and 2DPCAComparison between PCA and 2DPCA

Page 9: 吳家宇 吳明翰 Face Detection Based on Template Matching and 2DPCA Algorithm 2009/01/14.

2DPCA2DPCA2DPCA2DPCA

Page 10: 吳家宇 吳明翰 Face Detection Based on Template Matching and 2DPCA Algorithm 2009/01/14.

2DPCA2DPCA2DPCA2DPCA

Page 11: 吳家宇 吳明翰 Face Detection Based on Template Matching and 2DPCA Algorithm 2009/01/14.

• Minimal distance classifier– Realizes classification to every image matrix– Let– The detection windows corresponding to B are taken account of face region– Otherwise the detection windows are non-face

Classification-MergingClassification-Merging

• After two hierarchical detection– Most faces may be detected at multiple nearby positions or scales– Overlapping detected windows should be merged

• Merging

Page 12: 吳家宇 吳明翰 Face Detection Based on Template Matching and 2DPCA Algorithm 2009/01/14.

ComparisonComparisonComparisonComparison

Page 13: 吳家宇 吳明翰 Face Detection Based on Template Matching and 2DPCA Algorithm 2009/01/14.

ResultResultResultResult

Page 14: 吳家宇 吳明翰 Face Detection Based on Template Matching and 2DPCA Algorithm 2009/01/14.

ResultResultResultResult

Page 15: 吳家宇 吳明翰 Face Detection Based on Template Matching and 2DPCA Algorithm 2009/01/14.

Training DataTraining DataTraining DataTraining Data

• Bao Face Database – Lots of face images, mostly people from Asia. Single face

pictures are in the "one faces" subdirectory.

Page 16: 吳家宇 吳明翰 Face Detection Based on Template Matching and 2DPCA Algorithm 2009/01/14.

DemoDemoDemoDemo

Page 17: 吳家宇 吳明翰 Face Detection Based on Template Matching and 2DPCA Algorithm 2009/01/14.

DemoDemoDemoDemo