I have tried to create a new box array containing values only from pictures for scores more then 0.03, but it is removing columns in stead of rows so I end up with less then 4 columns with each column part of the the detected picture block, as I understand the 4 rows is the four points of each picture block containing a standing person?
peopleDetector = vision.PeopleDetector;I = imread('visionteam1.jpg');[bboxes,scores] = peopleDetector(I);Dimensions = size(bboxes);BoxRows = Dimensions(1);BoxCols = Dimensions(2);for x =1:BoxRows; for y = 1:BoxCols; if scores(y) > 0.04; NewBox(x,y) = bboxes(x,y); end endendI = insertObjectAnnotation(I,'rectangle',bboxes,scores);figure, imshow(I)title('Detected people and detection scores');
Best Answer