The invention provides a real-time
human body detection method based on an
AdaBoost frame and colour of a head, comprising training and detecting steps: (1) extracting multi-scale HOG (histograms of oriented gradients) characteristics according to a template; (2) training a
human body detection model by adopting an
AdaBoost-Boosting method; (3) extracting
histogram characteristics of the colour of the head; (4) training a head discrimination model by adopting an
AdaBoost method; (5) detecting a
human body based on a sliding window method; (6) for each detection window, firstly extracting the HOG characteristics, and judging whether the detected object is a human body or not according the human body detection model; and (7) for the window which is determined to be a human body, extracting the
histogram characteristics of the head, judging whether the head is contained or not; and determining the window containing the head to be a window containing a human body, and drawing a rectangle at a corresponding position in an image. In the invention, the characteristic unit, namely a Block of the original HOG characteristics is adopted, the Block is of multi-
scale type, and a characteristic template is combined, thus the detection effect is improved; and the head characteristic discrimination is added, thus the
detection rate is improved.