Histograms of Oriented Gradients for Human Detection

TL;DR Dense grids of locally contrast-normalized histograms of gradient orientations (HOG), fed to a linear SVM, detect pedestrians far better than wavelet, PCA-SIFT or shape-context features. They give near-perfect separation on the MIT set and at least an order of magnitude fewer false positives on the new, harder INRIA dataset.
What they do
Dalal and Triggs ask which image features best support detecting people, with a sliding-window linear SVM as a fixed test bed. They propose dense grids of locally normalized histograms of gradient orientations (HOG) and measure how each computation step affects detection. Because the MIT pedestrian set is essentially solved, they release a harder one, INRIA: 1805 64x128 crops of people from personal photos.
How it works
- Gradients and cells. Gradients come from a plain [-1, 0, 1] filter with no smoothing. Each pixel votes, weighted by gradient magnitude, into 9 unsigned orientation bins (0-180°) of an 8x8-pixel cell, with bilinear interpolation in position and orientation.
- Block normalization. Cells are grouped into 16x16-pixel blocks of 2x2 cells and contrast-normalized with L2-Hys (L2 norm, clip at 0.2, renormalize). Blocks overlap with an 8-pixel stride, so each cell appears four times under different normalizations.
- Detector. All block descriptors in a 64x128 window, which keeps about 16 pixels of context around the person, are concatenated and classified by a soft linear SVM. The SVM is retrained once with hard negatives mined from 1218 person-free photos.
Results
- On INRIA, HOG cuts false positives per window (FPPW) by at least an order of magnitude compared with generalized Haar wavelets, PCA-SIFT and shape contexts; on MIT it separates nearly perfectly.
- The best R-HOG setting, 3x3 blocks of 6x6-pixel cells, misses 10.4% of people at 1e-4 FPPW.
- Ablations at 1e-4 FPPW: smoothing gradients with σ=2 drops recall from 89% to 80%; omitting normalization costs 27%; the redundant overlapping normalization raises recall from 84% to 89%; a Gaussian-kernel SVM adds about 3% at much higher run time.
- The linear detector scans a 320x240 scale-space image (4000 windows) in under a second.
Limitations
One rigid template for mostly visible, upright people; since humans are highly articulated, the authors suggest a parts-based model for more general situations. Motion cues and a faster coarse-to-fine or rejection-chain detector are left to future work.
Figures




Abstract
We study the question of feature sets for robust visual object recognition, adopting linear SVM based human detection as a test case. After reviewing existing edge and gradient based descriptors, we show experimentally that grids of Histograms of Oriented Gradient (HOG) descriptors significantly outperform existing feature sets for human detection. We study the influence of each stage of the computation on performance, concluding that fine-scale gradients, fine orientation binning, relatively coarse spatial binning, and high-quality local contrast normalization in overlapping descriptor blocks are all important for good results. The new approach gives near-perfect separation on the original MIT pedestrian database, so we introduce a more challenging dataset containing over 1800 annotated human images with a large range of pose variations and backgrounds.
Summaries are written automatically from each paper's text. Figures and videos come from the paper and its project page; all credit goes to the authors.
