www.gusucode.com > vision 源码程序 matlab案例代码 > vision/DetectPeopleACFAlgorithmExample.m

    %% Detect People Using Aggregated Channel Features
%
%%
% Read an image.
I = imread('visionteam1.jpg');
%%
% Detect people in the image and store results as bounding boxes and score.
[bboxes,scores] = detectPeopleACF(I);
%%
% Annotate the detected upright people in the image.  
I = insertObjectAnnotation(I,'rectangle',bboxes,scores);
%%
% Display the results with annotation.
figure
imshow(I)
title('Detected people and detection scores')