Face detection Slides adapted Grauman & Liebe’s tutorial

Slides:



Advertisements
Similar presentations
EE462 MLCV Lecture 5-6 Object Detection – Boosting Tae-Kyun Kim.
Advertisements

EE462 MLCV Lecture 5-6 Object Detection – Boosting Tae-Kyun Kim.
Rapid Object Detection using a Boosted Cascade of Simple Features Paul Viola, Michael Jones Conference on Computer Vision and Pattern Recognition 2001.
Rapid Object Detection using a Boosted Cascade of Simple Features Paul Viola, Michael Jones Conference on Computer Vision and Pattern Recognition 2001.
Appearance-based recognition & detection II Kristen Grauman UT-Austin Tuesday, Nov 11.
Face detection State-of-the-art face detection demo (Courtesy Boris Babenko)Boris Babenko.
Face detection Behold a state-of-the-art face detector! (Courtesy Boris Babenko)Boris Babenko.
Recap: Bag of Words for Large Scale Retrieval Slide Credit: Nister Slide.
Face Detection & Synthesis using 3D Models & OpenCV Learning Bit by Bit Don Miller ITP, Spring 2010.
F ACE TRACKING EE 7700 Name: Jing Chen Shaoming Chen.
AdaBoost & Its Applications
Object Category Detection: Sliding Windows Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 04/10/12.
Face detection Many slides adapted from P. Viola.
Cos 429: Face Detection (Part 2) Viola-Jones and AdaBoost Guest Instructor: Andras Ferencz (Your Regular Instructor: Fei-Fei Li) Thanks to Fei-Fei Li,
EE462 MLCV Lecture 5-6 Object Detection – Boosting Tae-Kyun Kim.
Viola/Jones: features “Rectangle filters” Differences between sums of pixels in adjacent rectangles { y t (x) = +1 if h t (x) >  t -1 otherwise Unique.
Detecting Pedestrians by Learning Shapelet Features
The Viola/Jones Face Detector Prepared with figures taken from “Robust real-time object detection” CRL 2001/01, February 2001.
The Viola/Jones Face Detector (2001)
HCI Final Project Robust Real Time Face Detection Paul Viola, Michael Jones, Robust Real-Time Face Detetion, International Journal of Computer Vision,
1 Image Recognition - I. Global appearance patterns Slides by K. Grauman, B. Leibe.
Robust Real-time Object Detection by Paul Viola and Michael Jones ICCV 2001 Workshop on Statistical and Computation Theories of Vision Presentation by.
Face detection and recognition Many slides adapted from K. Grauman and D. Lowe.
A Robust Real Time Face Detection. Outline  AdaBoost – Learning Algorithm  Face Detection in real life  Using AdaBoost for Face Detection  Improvements.
Adaboost and its application
Robust Real-Time Object Detection Paul Viola & Michael Jones.
Viola and Jones Object Detector Ruxandra Paun EE/CS/CNS Presentation
Foundations of Computer Vision Rapid object / face detection using a Boosted Cascade of Simple features Presented by Christos Stoilas Rapid object / face.
Face Detection CSE 576. Face detection State-of-the-art face detection demo (Courtesy Boris Babenko)Boris Babenko.
FACE DETECTION AND RECOGNITION By: Paranjith Singh Lohiya Ravi Babu Lavu.
Face Detection using the Viola-Jones Method
A Tutorial on Object Detection Using OpenCV
EADS DS / SDC LTIS Page 1 7 th CNES/DLR Workshop on Information Extraction and Scene Understanding for Meter Resolution Image – 29/03/07 - Oberpfaffenhofen.
Object Detection Using the Statistics of Parts Presented by Nicholas Chan – Advanced Perception Robust Real-time Object Detection Henry Schneiderman.
Detecting Pedestrians Using Patterns of Motion and Appearance Paul Viola Microsoft Research Irfan Ullah Dept. of Info. and Comm. Engr. Myongji University.
Window-based models for generic object detection Mei-Chen Yeh 04/24/2012.
Lecture 29: Face Detection Revisited CS4670 / 5670: Computer Vision Noah Snavely.
Visual Object Recognition
Robust Real-time Face Detection by Paul Viola and Michael Jones, 2002 Presentation by Kostantina Palla & Alfredo Kalaitzis School of Informatics University.
Face Detection Ying Wu Electrical and Computer Engineering Northwestern University, Evanston, IL
Face detection Behold a state-of-the-art face detector! (Courtesy Boris Babenko)Boris Babenko slides adapted from Svetlana Lazebnik.
Project 3 Results.
Lecture 09 03/01/2012 Shai Avidan הבהרה: החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
The Viola/Jones Face Detector A “paradigmatic” method for real-time object detection Training is slow, but detection is very fast Key ideas Integral images.
CS 1699: Intro to Computer Vision Detection II: Deformable Part Models Prof. Adriana Kovashka University of Pittsburgh November 12, 2015.
Object Detection Overview Viola-Jones Dalal-Triggs Deformable models Deep learning.
Learning to Detect Faces A Large-Scale Application of Machine Learning (This material is not in the text: for further information see the paper by P.
Lecture 15: Eigenfaces CS6670: Computer Vision Noah Snavely.
Lecture 15: Eigenfaces CS6670: Computer Vision Noah Snavely.
FACE DETECTION : AMIT BHAMARE. WHAT IS FACE DETECTION ? Face detection is computer based technology which detect the face in digital image. Trivial task.
Face detection Behold a state-of-the-art face detector! (Courtesy Boris Babenko)Boris Babenko slides adapted from Svetlana Lazebnik.
Notes on HW 1 grading I gave full credit as long as you gave a description, confusion matrix, and working code Many people’s descriptions were quite short.
A Brief Introduction on Face Detection Mei-Chen Yeh 04/06/2010 P. Viola and M. J. Jones, Robust Real-Time Face Detection, IJCV 2004.
(Courtesy Boris Babenko)
Face detection Many slides adapted from P. Viola.
Visual Object Recognition
Face Detection and Recognition Reading: Chapter and, optionally, “Face Recognition using Eigenfaces” by M. Turk and A. Pentland.
AdaBoost Algorithm and its Application on Object Detection Fayin Li.
Recognition Part II: Face Detection via AdaBoost Linda Shapiro CSE
Things iPhoto thinks are faces
Cascade for Fast Detection
Recognition Part II: Face Detection via AdaBoost
Session 7: Face Detection (cont.)
Lit part of blue dress and shadowed part of white dress are the same color
Object detection as supervised classification
Learning to Detect Faces Rapidly and Robustly
Cos 429: Face Detection (Part 2) Viola-Jones and AdaBoost Guest Instructor: Andras Ferencz (Your Regular Instructor: Fei-Fei Li) Thanks to Fei-Fei.
Face Detection via AdaBoost
ADABOOST(Adaptative Boosting)
Lecture 29: Face Detection Revisited
Presentation transcript:

Face detection Slides adapted Grauman & Liebe’s tutorial Why would this be useful? Main reason is focus. Also enables “smart” cropping. Slides adapted Grauman & Liebe’s tutorial http://www.vision.ee.ethz.ch/~bleibe/teaching/tutorial-aaai08/ Also see Paul Viola’s talk (video) http://www.cs.washington.edu/education/courses/577/04sp/contents.html#DM

Limitations of Eigenfaces Eigenfaces are cool. But they’re not great for face detection. Chief Limitations not very accurate not very fast To make it work on the camera, we need ~30fps, and near-perfect accuracy. 2

Rectangle filters 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 -1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1 P. Viola and M. Jones. Rapid object detection using a boosted cascade of simple features. CVPR 2001.

Why rectangles? Answer: very very fast to compute (x,y) integral image Trick: integral images (aka summed-area-tables) Value at (x,y) is sum of pixels above and to the left of (x,y) (x,y) integral image

Integral images What’s the sum of pixels in the blue rectangle? A B C D input image integral image

Integral images A B C D integral image

Integral images A integral image

Integral images B integral image

Integral images C integral image

Integral images D integral image

Integral images What’s the sum of pixels in the rectangle? A B C D

Computing sum within a rectangle Let A,B,C,D be the values of the integral image at the corners of a rectangle Then the sum of original image values within the rectangle can be computed as: sum = A – B – C + D Only 3 additions are required for any size of rectangle! D B A C Lana Lazebnik

Filter as a classifier How to convert the filter into a classifier? Resulting weak classifier: Outputs of a rectangle feature on faces and non-faces.

Finding the best filters... Considering all possible filter parameters: position, scale, and type: 180,000+ possible filters associated with each 24 x 24 window Which of these filters(s) should we use to determine if a window has a face?

Boosting Weak Classifier 1 Slide credit: Paul Viola

Boosting Weights Increased

Boosting Weak Classifier 2

Boosting Weights Increased

Boosting Weak Classifier 3

Boosting Final classifier is a combination of weak classifiers

Boosting: training Initially, weight each training example equally In each boosting round: find the weak classifier with lowest weighted training error raise weights of training examples misclassified by current weak classifier Final classifier is linear combination of all weak classifiers weight of each learner is directly proportional to its accuracy) Exact formulas for re-weighting and combining weak classifiers depend on the particular boosting scheme Slide credit: Lana Lazebnik

AdaBoost Algorithm {x1,…xn} Start with uniform weights on training examples {x1,…xn} For T rounds Evaluate weighted error for each feature, pick best. Perceptual and Sensory Augmented Computing Visual Object Recognition Tutorial Visual Object Recognition Tutorial Re-weight the examples: Incorrectly classified -> more weight Correctly classified -> less weight Final classifier is combination of the weak ones, weighted according to error they had. Freund & Schapire 1995

Viola-Jones Face Detector: Results First two features selected Visual Object Recognition Tutorial Visual Object Recognition Tutorial Perceptual and Sensory Augmented Computing

Even if the filters are fast to compute, each new image has a lot of possible windows to search. How to make the detection more efficient?

Cascading classifiers for detection Form a cascade with low false negative rates early on Apply less accurate but faster classifiers first to immediately discard windows that clearly appear to be negative Kristen Grauman

Viola-Jones detector: summary Train cascade of classifiers with AdaBoost Apply to each subwindow Faces New image Selected features, thresholds, and weights Non-faces Train with 5K positives, 350M negatives Real-time detector using 38 layer cascade 6061 features in all layers [Implementation available in OpenCV: http://www.intel.com/technology/computing/opencv/] Kristen Grauman

Viola-Jones Face Detector: Results Visual Object Recognition Tutorial Visual Object Recognition Tutorial Perceptual and Sensory Augmented Computing

Viola-Jones Face Detector: Results Visual Object Recognition Tutorial Visual Object Recognition Tutorial Perceptual and Sensory Augmented Computing

Viola-Jones Face Detector: Results Visual Object Recognition Tutorial Visual Object Recognition Tutorial Perceptual and Sensory Augmented Computing

Detecting profile faces? Can we use the same detector? Visual Object Recognition Tutorial Visual Object Recognition Tutorial Perceptual and Sensory Augmented Computing

Viola-Jones Face Detector: Results Perceptual and Sensory Augmented Computing Visual Object Recognition Tutorial Visual Object Recognition Tutorial Paul Viola, ICCV tutorial

Example using Viola-Jones detector Frontal faces detected and then tracked, character names inferred with alignment of script and subtitles. Everingham, M., Sivic, J. and Zisserman, A. "Hello! My name is... Buffy" - Automatic naming of characters in TV video, BMVC 2006. http://www.robots.ox.ac.uk/~vgg/research/nface/index.html

Application: streetview

Application: streetview 34

Application: streetview 35

Consumer application: iPhoto 2009 http://www.apple.com/ilife/iphoto/ Slide credit: Lana Lazebnik

Consumer application: iPhoto 2009 Things iPhoto thinks are faces Slide credit: Lana Lazebnik

What other categories are amenable to window-based representation?

Pedestrian detection Detecting upright, walking humans also possible using sliding window’s appearance/texture; e.g., Visual Object Recognition Tutorial Perceptual and Sensory Augmented Computing Visual Object Recognition Tutorial SVM with HoG [Dalal & Triggs, CVPR 2005] Kristen Grauman

Window-based detection: strengths Sliding window detection and global appearance descriptors: Simple detection protocol to implement Good feature choices critical Past successes for certain classes Visual Object Recognition Tutorial Perceptual and Sensory Augmented Computing Visual Object Recognition Tutorial Kristen Grauman

Window-based detection: Limitations High computational complexity For example: 250,000 locations x 30 orientations x 4 scales = 30,000,000 evaluations! If training binary detectors independently, means cost increases linearly with number of classes With so many windows, false positive rate better be low Visual Object Recognition Tutorial Perceptual and Sensory Augmented Computing Visual Object Recognition Tutorial Kristen Grauman

Limitations (continued) Not all objects are “box” shaped Visual Object Recognition Tutorial Perceptual and Sensory Augmented Computing Visual Object Recognition Tutorial Kristen Grauman

Limitations (continued) Non-rigid, deformable objects not captured well with representations assuming a fixed 2d structure; or must assume fixed viewpoint Objects with less-regular textures not captured well with holistic appearance-based descriptions Visual Object Recognition Tutorial Perceptual and Sensory Augmented Computing Visual Object Recognition Tutorial Kristen Grauman

Limitations (continued) If considering windows in isolation, context is lost Visual Object Recognition Tutorial Perceptual and Sensory Augmented Computing Visual Object Recognition Tutorial Sliding window Detector’s view Figure credit: Derek Hoiem Kristen Grauman

Limitations (continued) In practice, often entails large, cropped training set (expensive) Requiring good match to a global appearance description can lead to sensitivity to partial occlusions Visual Object Recognition Tutorial Perceptual and Sensory Augmented Computing Visual Object Recognition Tutorial Image credit: Adam, Rivlin, & Shimshoni Kristen Grauman