introduction to skin and face detection

19
INTRODUCTION TO SKIN AND FACE DETECTION Aleksey Deykin

Upload: wilbur

Post on 25-Feb-2016

56 views

Category:

Documents


2 download

DESCRIPTION

Introduction to Skin and Face Detection. Aleksey Deykin. Introduction. What it is Automatic computer recognition of faces and skin tone Applications Anything from security and law enforcement to assisting the elderly and visually impaired Requirements - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Introduction to Skin and Face Detection

INTRODUCTION TO SKIN AND FACE DETECTIONAleksey Deykin

Page 2: Introduction to Skin and Face Detection

Introduction What it is

Automatic computer recognition of faces and skin tone

Applications Anything from security and law

enforcement to assisting the elderly and visually impaired

Requirements Fast, accurate, and lighting and ethnicity

invariant

Page 3: Introduction to Skin and Face Detection

Skin Color Detection Provide a sample of skin

tone Calculate average color

(RGB) Scan images pixel by

pixel If color matches, color

pixel red

Page 4: Introduction to Skin and Face Detection

RGB The most commonly used color space in

digital images. It encodes colors as an additive combination of 3 primary colors: red (R), green (G) and blue (B)

Red: rgb(255,0,0) Blue: rgb(0,255,0) Green: rgb(0,0,255) Black: rgb(0,0,0) White: rgb(255,255,255)

Page 5: Introduction to Skin and Face Detection

Simple Skin Detection

Page 6: Introduction to Skin and Face Detection

Improved Skin Detection

Page 7: Introduction to Skin and Face Detection

Improved Skin Detection

Page 8: Introduction to Skin and Face Detection

Improved Skin Detection

Page 9: Introduction to Skin and Face Detection

Algorithm Loop through every pixel of the sample

rectangle Add pixel’s RGB channels to a vector

Calculate average RGB value (skin tone) Loop through every pixel of the image If R±40 and G±40 and B±40 for rectangle

1, or If R±40 and G±40 and B±40 for rectangle 2

Color the pixel red (skin detected)

Page 10: Introduction to Skin and Face Detection

Challenges & Limitations Slow

O(xy) 80 seconds per 100 skin detections, or 0.8

seconds per image (400x608) As resolution doubles, computing time

quadruples Color-dependent

Black & white pictures problematic Ethnicity dependent Needs contrasting background

Page 11: Introduction to Skin and Face Detection

Challenges & Limitations

Page 12: Introduction to Skin and Face Detection

Further Research Different color space? YCbCr

Used in video and digital photography systems due to its ability to encode and compress RGB information. Stores luminance separately.

Page 13: Introduction to Skin and Face Detection

Face Detection Viola-Jones algorithm Feature-based vs pixel-based Detector scans input at multiple scales, starting with

a base of 24x24 pixels, such that a 384 by 288 pixel image is scanned at 12 scales with a 1.25x step

AdaBoost learning algorithm (thousands of faces to train)

First selected feature is usually around the eyes (usually darker area) - if eyes are not visible, algorithm usually fails

95% detection (1 in 14084 falsepositive) – 15 fps

Page 14: Introduction to Skin and Face Detection

Face Detection Results

Page 15: Introduction to Skin and Face Detection

Challenges & Limitations Trained on front-facing upright faces and

is only reliable for faces rotated around ±15 degrees in plane and ±45 degrees out of place (toward a profile view)

Fails for overexposed (bright) backgrounds

Heavily occluded faces not detected

Page 16: Introduction to Skin and Face Detection

Further Research Combine skin and face detection?

Pre-screen images for skin, then run face detection over skin regions

Run both algorithms, one is bound to find a face

Extend skin detection?

Page 17: Introduction to Skin and Face Detection

Detect skin… And faces

Page 18: Introduction to Skin and Face Detection

Conclusion Simple algorithm to detect skin Slow and highly dependent on lighting Possible to improve results with different

color space Faces naturally form detectable ovals Wear shades to protect privacy

Page 19: Introduction to Skin and Face Detection

References Elgammal, A., Muang, C., and Hu, D. 2009. Skin Detection - a

Short Tutorial. Rutgers University, Piscataway, NJ. http://www.cs.rutgers.edu/~elgammal/pub/skin.pdf. May 17, 2012.

Shah, M. A. An Introduction to Wavelets and the Haar Transform. http://www.cs.ucf.edu/~mali/haar/. May 17, 2012.

Soetedjo, A., Yamada, K. 2008. Skin Color Segmentation Using Coarse-to-Fine Region on Normalized RGB Chromaticity Diagram for Face Detection. IEICE Trans. Inf. & Syst., Vol.E91-D, No.10 October 2008.

Szeliski, R. 2010. Computer Vision: Algorithms and Applications. http://szeliski.org/Book/. May 17, 2012. pp. 664-665.

Viola, P., Jones, M. J. 2003. Robust Real-Time Face Detection. International Journal of Computer Vision 57(2), pp. 137-154, 2004.