How to detect faces ? Sbastien M ARCEL Yann R ODRIGUEZ . - - PowerPoint PPT Presentation

how to detect faces
SMART_READER_LITE
LIVE PREVIEW

How to detect faces ? Sbastien M ARCEL Yann R ODRIGUEZ . - - PowerPoint PPT Presentation

How to detect faces ? Sbastien M ARCEL Yann R ODRIGUEZ . Introduction First step before: face tracking face recognition facial expression recognition gesture recognition Related projects at IDIAP BANCA, M4,


slide-1
SLIDE 1

.

How to detect faces ?

Sébastien MARCEL Yann RODRIGUEZ

slide-2
SLIDE 2

2

  • Introduction

First step before:

face tracking face recognition facial expression recognition gesture recognition

Related projects at IDIAP

BANCA, M4, COST IM2.SA, IM2.ACP

slide-3
SLIDE 3

3

  • Where is the face ?

Perfect conditions:

uniform background uniform lightning

slide-4
SLIDE 4

4

  • Where is the face ?

Non-uniform lightning:

slide-5
SLIDE 5

5

  • Where is the face ?

Low quality images:

slide-6
SLIDE 6

6

  • Where are the faces ?

Scans:

gray level images various quality

slide-7
SLIDE 7

7

  • Where are the faces ?

Multiple faces (outdoor):

slide-8
SLIDE 8

8

  • Where are the faces ?

Multiple faces (indoor):

slide-9
SLIDE 9

9

  • Where are the faces ?

Multiple scales:

slide-10
SLIDE 10

10

  • In-plane vs Out-of-plane rotations

In-plane rotations:

rotation in the plane of the image 1 degree of freedom

Out-of-plane rotations:

rotation out-of the plane of the image 2 degrees of freedom

slide-11
SLIDE 11

11

  • Extreme case :-)
slide-12
SLIDE 12

12

  • Appearance based models

1 model for each appearance:

frontal profile/half profile up/down

slide-13
SLIDE 13

13

  • Face modeling

Ideal detection:

slide-14
SLIDE 14

14

  • Face modeling

Determining the face bounding box:

facial measures [1] facial landmarks (eyes)

Useful for:

database collection evaluation

[1] “Anthropometry of the Head and Face” L.G. Farkas

width height lower-half height

slide-15
SLIDE 15

15

  • Face detection in 2 stages

Scanning and classification Merging overlapped detections

Classifier: MLP or weak classifiers Decision

Non Face Face

Feature vector

slide-16
SLIDE 16

16

  • False detections

number of tests: up to 1 million Targeted performance: < 10-7 false detection rate

slide-17
SLIDE 17

17

  • Using a MLP as classifier

The input size of a MLP is fixed Scan a fixed window:

at any scale at any rotation at any location

Low false detections Slow: 10s/image

scale rotation

slide-18
SLIDE 18

18

  • A weighted sum of weak classifiers

Using input features which can be computed at

any scale:

pixel based weak classifiers Haar-like based weak classifiers

Fast: 100ms/image Higher false detections than MLP

rotation

slide-19
SLIDE 19

19

  • Weak classifier: ht(x)

ft : input feature θ θ θ θt : threshold

Weighted sum of weak classifiers:

g(x) = Σ

Σ Σ Σt α

α α αt ht(x)

Boosting the performance of weak classifiers by

combining them iteratively

For more details see S. Bengio lectures

Weak classifiers

ft ft < θ θ θ θt ft > θ θ θ θt 1 or 0

slide-20
SLIDE 20

20

  • The features are just the pixels of the image:

Each weak classifier considers 1 pixel of the image x:

g(x) = Σ

Σ Σ Σt α

α α αt ht(x)

Pixel based weak classifiers

Feature vector

slide-21
SLIDE 21

21

  • Haar-like basis functions:

Applying all masks at any scales and positions:

g(x) = Σ

Σ Σ Σt α

α α αt ht(x)

Haar-like based weak classifiers

Feature vector dimension between 1000 and 20000

slide-22
SLIDE 22

22

  • Haar-like based weak classifiers

AdaBoost selects a mask at a given position and size:

slide-23
SLIDE 23

23

  • Def: The point (x, y) of the integral image is the sum of all

the pixels in the upper-left corner of the original image

Can be computed efficiently in 1 pass

Integral Image (1/2)

i(x, y) ii(x, y)

slide-24
SLIDE 24

24

  • The sum of pixels in D is P4 + P1 - (P2 + P3)

Haar-like features are very fast to compute

Integral Image (2/2)

P1

C A D B

P2 P3 P4

slide-25
SLIDE 25

25

  • Examples of detections
slide-26
SLIDE 26

26

  • Demonstration

Face detection in meetings:

FGnet dataset video: 720x576 25fps each frame is processed

individually with Haar-like based weak classifiers

slide-27
SLIDE 27

27

  • Face detection software:

available to anybody at IDIAP to process still images or videos easy to modify face classifiers are in Torch3

Future work:

  • ut-of-plane face models are missing

building cascade of weak-classifiers evaluation on benchmark databases

Conclusion