www.gusucode.com > IPCV_Eval_Kit_R2019a_0ce6858工具箱matlab程序源码 > IPCV_Eval_Kit_R2019a_0ce6858/code/demo_files/I5_01_peopleDetection.m

    clear; close all; clc;

%% 夋憸偺撉崬傒丒昞帵
I = imread('visionteam1.jpg');
figure;imshow(I);

%% 恖偺専弌 : ACF傾儖僑儕僘儉
detector = peopleDetectorACF;
[bboxes, scores] = detect(detector, I)

%% 寢壥偺昞帵
I1 = insertObjectAnnotation(I, 'rectangle', bboxes, scores, 'FontSize',16, 'LineWidth',3);
figure, imshow(I1);
title('Detected people and detection scores');

%% 廔椆












%% 恖偺専弌丗HOG摿挜検 傪巊偆応崌
peopleDetector = vision.PeopleDetector;
[bboxes, scores] = step(peopleDetector, I)


%% Copyright 2014 The MathWorks, Inc.