Cascade for Fast Detection

Slides:



Advertisements
Similar presentations
Jan-Michael Frahm, Enrique Dunn Spring 2013
Advertisements

Histograms of Oriented Gradients for Human Detection
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.
Recap: Advanced Feature Encoding Bag of Visual Words is only about counting the number of local descriptors assigned to each Voronoi region (0 th order.
Crash Course on Machine Learning Part IV Several slides from Derek Hoiem, and Ben Taskar.
Computer Vision for Human-Computer InteractionResearch Group, Universität Karlsruhe (TH) cv:hci Dr. Edgar Seemann 1 Computer Vision: Histograms of Oriented.
Lecture 31: Modern object recognition
LPP-HOG: A New Local Image Descriptor for Fast Human Detection Andy Qing Jun Wang and Ru Bo Zhang IEEE International Symposium.
Many slides based on P. FelzenszwalbP. Felzenszwalb General object detection with deformable part-based models.
Histograms of Oriented Gradients for Human Detection Navneet Dalal and Bill Triggs CVPR 2005 Another Descriptor.
Presenter: Hoang, Van Dung
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
More sliding window detection: Discriminative part-based models Many slides based on P. FelzenszwalbP. Felzenszwalb.
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)
Object Category Detection: Statistical Templates Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 04/14/15.
Generic Object Detection using Feature Maps Oscar Danielsson Stefan Carlsson
Object Detection using Histograms of Oriented Gradients
Robust Real-Time Object Detection Paul Viola & Michael Jones.
The SIFT (Scale Invariant Feature Transform) Detector and Descriptor
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.
Generic object detection with deformable part-based models
Face Detection using the Viola-Jones Method
“Secret” of Object Detection Zheng Wu (Summer intern in MSRNE) Sep. 3, 2010 Joint work with Ce Liu (MSRNE) William T. Freeman (MIT) Adam Kalai (MSRNE)
Window-based models for generic object detection Mei-Chen Yeh 04/24/2012.
Face detection Slides adapted Grauman & Liebe’s tutorial
Visual Object Recognition
Lecture 31: Modern recognition CS4670 / 5670: Computer Vision Noah Snavely.
Recognition II Ali Farhadi. We have talked about Nearest Neighbor Naïve Bayes Logistic Regression Boosting.
Object Category Detection: Sliding Windows Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 03/18/10.
Project 3 Results.
Histograms of Oriented Gradients for Human Detection(HOG)
Robust Real Time Face Detection
Methods for classification and image representation
Histograms of Oriented Gradients for Human Detection Navneet Dalal and Bill Triggs CVPR 2005 Another Descriptor.
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.
Pedestrian Detection Histograms of Oriented Gradients for Human Detection Navneet Dalal and Bill Triggs CVPR ‘05 Pete Barnum March 8, 2006.
CS-498 Computer Vision Week 9, Class 2 and Week 10, Class 1
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.
Statistical Template-Based Object Detection A Statistical Method for 3D Object Detection Applied to Faces and Cars Henry Schneiderman and Takeo Kanade.
More sliding window detection: Discriminative part-based models
Object DetectionI Ali Taalimi 01/08/2013.
Object detection with deformable part-based models
Session 7: Face Detection (cont.)
Presented by Minh Hoai Nguyen Date: 28 March 2007
Lit part of blue dress and shadowed part of white dress are the same color
Object detection, deep learning, and R-CNNs
Recap: Advanced Feature Encoding
High-Level Vision Face Detection.
Object detection as supervised classification
Introduction of Pedestrian Detection
A Tutorial on HOG Human Detection
HOGgles Visualizing Object Detection Features
Cos 429: Face Detection (Part 2) Viola-Jones and AdaBoost Guest Instructor: Andras Ferencz (Your Regular Instructor: Fei-Fei Li) Thanks to Fei-Fei.
Pedestrian Detection Histograms of Oriented Gradients for Human Detection Navneet Dalal and Bill Triggs CVPR ‘05 Pete Barnum March 8, 2006.
Pedestrian Detection Histograms of Oriented Gradients for Human Detection Navneet Dalal and Bill Triggs CVPR ‘05 Pete Barnum March 8, 2006.
Object DetectionII Ali Taalimi 01/08/2013.
Lecture 29: Face Detection Revisited
Feature descriptors and matching
Presentation transcript:

Cascade for Fast Detection Examples Stage 1 H1(x) > t1? Reject No Yes Stage 2 H2(x) > t2? Stage N HN(x) > tN? … Pass Choose threshold for low false negative rate Fast classifiers early in cascade Slow classifiers later, but most examples don’t get there

Features that are fast to compute “Haar-like features” Differences of sums of intensity Thousands, computed at various positions and scales within detection window -1 +1 Two-rectangle features Three-rectangle features Etc.

Integral Images ii = cumsum(cumsum(im, 1), 2) x, y ii(x,y) = Sum of the values in the grey region SUM within Rectangle D is ii(4) - ii(2) - ii(3) + ii(1)

Feature selection with Adaboost Create a large pool of features (180K) Select features that are discriminative and work well together “Weak learner” = feature + threshold + parity Choose weak learner that minimizes error on the weighted training set Reweight

Viola Jones Results Speed = 15 FPS (in 2001) MIT + CMU face dataset

Object Detection Overview Viola-Jones Dalal-Triggs Deformable models Deep learning

Statistical Template Object model = sum of scores of features at fixed positions ? +3 +2 -2 -1 -2.5 = -0.5 > 7.5 Non-object ? +4 +1 +0.5 +3 +0.5 = 10.5 > 7.5 Object

Example: Dalal-Triggs pedestrian detector Extract fixed-sized (64x128 pixel) window at each position and scale Compute HOG (histogram of gradient) features within each window Score the window with a linear SVM classifier Perform non-maxima suppression to remove overlapping detections with lower scores 6000+ citations, another of the most influential papers in computer vision! Navneet Dalal and Bill Triggs, Histograms of Oriented Gradients for Human Detection, CVPR05

Slides by Pete Barnum Navneet Dalal and Bill Triggs, Histograms of Oriented Gradients for Human Detection, CVPR05

Gamma Normalization and Compression Tested with RGB LAB Grayscale Gamma Normalization and Compression Square root Log Slightly better performance vs. grayscale Very slightly better performance vs. no adjustment

Outperforms centered diagonal uncentered cubic-corrected Sobel Slides by Pete Barnum Navneet Dalal and Bill Triggs, Histograms of Oriented Gradients for Human Detection, CVPR05

Histogram of gradient orientations Votes weighted by magnitude Bilinear interpolation between cells Orientation: 9 bins (for unsigned angles 0 -180) Histograms in k x k pixel cells Slides by Pete Barnum Navneet Dalal and Bill Triggs, Histograms of Oriented Gradients for Human Detection, CVPR05

Normalize with respect to surrounding cells Slides by Pete Barnum Navneet Dalal and Bill Triggs, Histograms of Oriented Gradients for Human Detection, CVPR05

# normalizations by neighboring cells Original Formulation # orientations # features = 15 x 7 x 9 x 4 = 3780 X= # cells # normalizations by neighboring cells Note – this is not a “bag of features”, these gradient measurements have fixed spatial positions Slides by Pete Barnum Navneet Dalal and Bill Triggs, Histograms of Oriented Gradients for Human Detection, CVPR05

pos w neg w Slides by Pete Barnum Navneet Dalal and Bill Triggs, Histograms of Oriented Gradients for Human Detection, CVPR05

pedestrian Slides by Pete Barnum Navneet Dalal and Bill Triggs, Histograms of Oriented Gradients for Human Detection, CVPR05

Pedestrian detection with HOG Train a pedestrian template using a linear support vector machine At test time, convolve feature map with template Find local maxima of response For multi-scale detection, repeat over multiple levels of a HOG pyramid HOG feature map Template Detector response map N. Dalal and B. Triggs, Histograms of Oriented Gradients for Human Detection, CVPR 2005

Something to think about… Sliding window detectors work very well for faces fairly well for cars and pedestrians badly for cats and dogs Why are some classes easier than others?

Strengths and Weaknesses of Statistical Template Approach Works very well for non-deformable objects with canonical orientations: faces, cars, pedestrians Fast detection Weaknesses Not so well for highly deformable objects or “stuff” Not robust to occlusion Requires lots of training data

Tricks of the trade Details in feature computation really matter E.g., normalization in Dalal-Triggs improves detection rate by 27% at fixed false positive rate Template size Typical choice is size of smallest detectable object “Jittering” to create synthetic positive examples Create slightly rotated, translated, scaled, mirrored versions as extra positive examples Bootstrapping to get hard negative examples Randomly sample negative examples Train detector Sample negative examples that score > -1 Repeat until all high-scoring negative examples fit in memory

Things to remember Sliding window for search Features based on differences of intensity (gradient, wavelet, etc.) Excellent results require careful feature design Boosting for feature selection Integral images, cascade for speed Bootstrapping to deal with many, many negative examples Examples Stage 1 H1(x) > t1? Reject No Yes Stage 2 H2(x) > t2? Stage N HN(x) > tN? … Pass