Why my 'bboxes' and 'scores' variables are all empty while certainly my image contains a person?

1 次查看(过去 30 天)
Hi,
This is my example image clearly with a person in it.
I would like to use Matlab's 'people detector' to detect the person in the image.
So I tried:
peopleDetector = vision.PeopleDetector;
I = imread('executive1.jpg');
[bboxes,scores] = step(peopleDetector,I);
I was hoping 'bboxes' could give me the position so that I could draw a box around the human in the image. However, 'bboxes' and 'scores' are all empty which I don't understand.
I'm a beginner to human detection. Please help.

采纳的回答

Alex Mcaulley
Alex Mcaulley 2019-7-24
Have you tried changing the peopledetector properties? For example, you get a result just changing the model:
peopleDetector = vision.PeopleDetector('ClassificationModel','UprightPeople_96x48');
I = imread('executive1.jpeg');
[bboxes,scores] = step(peopleDetector,I);
bboxes =
103 66 73 125

更多回答(1 个)

Matt J
Matt J 2019-7-24
编辑:Matt J 2019-7-24
SVMs are allegedly poorer than neural net classifiers, but this helped,
I=imresize(I,[760,1064]);
peopleDetector = vision.PeopleDetector('UprightPeople_96x48','MinSize',[128,96]*2);

类别

Help CenterFile Exchange 中查找有关 Computer Vision Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by