Face Detection

30
Face Detection EE368 Final Project Spring 2003 - Group 6 - Anthony Guetta Michael Pare Sriram Rajagopal

description

Face Detection. EE368 Final Project Spring 2003. - Group 6 - Anthony Guetta Michael Pare Sriram Rajagopal. Overview. Problem Identification Methods Adopted Color Segmentation Morphological Processing Template Matching EigenFaces Gender Classification. Color Segmentation. - PowerPoint PPT Presentation

Transcript of Face Detection

Page 1: Face Detection

Face Detection

EE368 Final ProjectSpring 2003

- Group 6 -Anthony Guetta

Michael PareSriram Rajagopal

Page 2: Face Detection

OverviewProblem IdentificationMethods Adopted Color Segmentation Morphological Processing Template Matching EigenFaces Gender Classification

Page 3: Face Detection

Color SegmentationUse the color informationTwo approaches: Global threshold in HSV and YCbCr space using

set of linear equations. Lot of overlap exists

(a) (b)Clustering in (a) YCbCr and (b) V vs. H space. Red is non-

face and blue is face data

Page 4: Face Detection

Result of color segmentation using Global thresholding

Page 5: Face Detection

Second approach involves RGB vector quantization (Linde, Buzo, Gray) Use RGB as a 3-D vector and quantize the

RGB space for the face and non-face regions

Overlap exists in RGB space also

Sample Blue vs Green plot for face (blue) and non-face (red) data.

Page 6: Face Detection

Results from initial quantization Common problems identified

Page 7: Face Detection

Better Code book developed Problem areas broken up

Page 8: Face Detection

Initial step of open and close performed to fill holes in faces

Elongated objects removed by check on aspect ratio and small areas discarded

Page 9: Face Detection

Morphological Processing

Segmented and processed Image consists of all skin regions (face, arms and fists)Need to identify centers of all objects, including individual faces among connected facesRepeated EROSION is done with specific structuring element

Page 10: Face Detection

Previous state stored to identify new regions when split occurs

Superimposed mask image with eroded regions for estimate of

centroids

Page 11: Face Detection

Template MatchingData set has 145 male and 19 female facesNeed to identify region around estimated centroids as face or non-faceMulti-resolution was attempted. But distortion from neighboring faces gives false valuesSmaller template has better result for all face shapesTemplate used is the mean face of 50x50 pixels

Mean Face used for template matching

Page 12: Face Detection

Illumination problem identified Top has low lighting, lower part is brighter Left and right edges of images do not have

people 2-D weighting function for correlation values

applied

2-D weighting function Sample correlation result

Page 13: Face Detection

Result from template matching and thresholding. Rejected - Red ‘x’. Detected

Faces – Green ‘x’

Page 14: Face Detection

EigenFace based detectionDecompose faces into set of basis imagesDifferent methods of candidate face extraction from image

EigenFaces

(a) (b)

Candidate face extraction (a) Conservative (b) multi-resolution with side distortion

Page 15: Face Detection

Sample result of eigenface. Red ‘+’ is from morphological processing and green ‘O’ is

from eigenfaces

Page 16: Face Detection

Minimum Distance between vector of coefficients to that of the face dataset was the metric.It depends very much on spatial similarity to trained datasetSlight changes give incorrect resultsHence, only template matching was used

Page 17: Face Detection

Gender classificationEigenfaces and template matching for specific face features do not yield good resultsOther features for specific females were used – the headbandTemplate matching was performed for itConservative estimate was done to prevent falsely identifying males as a female

The headband template

Page 18: Face Detection

TrainingImage

FinalScore

DetectScore

Number Hits

Num Repeat

Num False

Positives

Distance Runtime Bonus

1 22 21 21 0 0 15.9311 71.91 1

2 22 21 23 0 2 13.6109 82.96 1

3 25 25 25 0 0 9.8625 80.48 0

4 22 22 24 0 2 11.3667 81.15 0

5 24 24 24 0 0 9.5960 69.59 0

6 23 23 23 0 0 11.5512 80.25 0

7 22 21 21 0 0 14.1537 71.52 1

Table of results for training images

Approx. 95% accuracy with about 75 seconds runtime

Page 19: Face Detection

Training 1

Page 20: Face Detection

Training 2

Page 21: Face Detection

Training 3

Page 22: Face Detection

Training 4

Page 23: Face Detection

Training 5

Page 24: Face Detection

Training 6

Page 25: Face Detection

Training 7

Page 26: Face Detection

ConclusionRGB Vector Quantization gave excellent segmentationMorphological processing gave good estimate of centroidsTemplate matching with illumination correction gave near perfect resultsSpecific female was identified with headband

Page 27: Face Detection

Future ConsiderationsEdge detection to better separate the connected facesPreprocess the image in HSV space before codebook comparison to improve runtimeImprove rejection of highly correlated non-face objects

Page 28: Face Detection

Thank YouQuestions ?

Page 29: Face Detection
Page 30: Face Detection

17

16

15

14

13

12

11

10

9

8

7

2 (0)5 (17)6

2 (0)6 (13)5

2 (0)3 (18)4

2 (0)3 (18)3

2 (0)1 (20)2

1 (1)2 (19)1

Gender RecognitionFace Detection

17

16

15

14

13

12

11

10

9

8

7

2 (0)5 (17)6

2 (0)6 (13)5

2 (0)3 (18)4

2 (0)3 (18)3

2 (0)1 (20)2

1 (1)2 (19)1

Gender RecognitionFace Detection