faceDetector = vision.CascadeObjectDetector(); lframe=vida(curr-9).cdata; bbox = step(faceDetector, lframe);%some extra coding that reset lframe
lframelabel = regionprops(lframe,'BoundingBox');boxes = cat(1, lframelabel.BoundingBox);[m,~]=size(boxes);for idx=1:m if (bboxOverlapRatio(boxes(idx,:),bbox) > 0) play(player); endend
I have visually verified that the 2 bounding boxes overlaps. Yet the test condition does not trigger therefore my player does not play. Can anyone help?
Best Answer