In 2005 Navneet Dalal and Bill Triggs asked a deceptively simple question: what single number best describes the local shape of an image patch? Their answer — count the orientations of edges inside tiny grid cells — produced the Histogram of Oriented Gradients (HOG) descriptor, and with it the first reliable pedestrian detector that worked in the wild.
The idea starts with gradients. At each pixel the image brightness changes slightly as you move left-to-right or top-to-bottom. Those two numbers — the horizontal and vertical change — define an edge direction (an angle from to ) and a magnitude (how strong the edge is). HOG ignores the exact pixel values and instead bins the angles, weighted by magnitude, inside each small cell of the image.
The resulting histogram — typically 9 bins covering to in steps — is a compact fingerprint of the local shape. Stack the histograms of all cells across a detection window, normalize them in overlapping blocks to handle lighting changes, and you have a vector of a few thousand numbers that is stable, fast to compute, and remarkably effective at telling humans from backgrounds.
Comments
Loading comments...