Why my 'bboxes' and 'scores' variables are all empty while certainly my image contains a person?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Salad Box
am 24 Jul. 2019
Bearbeitet: Matt J
am 24 Jul. 2019
Hi,
This is my example image clearly with a person in it.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/231099/image.jpeg)
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/231100/image.png)
I'm a beginner to human detection. Please help.
0 Kommentare
Akzeptierte Antwort
Alex Mcaulley
am 24 Jul. 2019
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
0 Kommentare
Siehe auch
Kategorien
Mehr zu Computer Vision Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!