my detector shows multiple bounding boxes .
显示 更早的评论
hi everyone,
i have problem that my trained detector show multple bounding boxes on same object as shown in attached image .Inaddition to this iit shows bounding boxes only when threshold is set to 0.1.if i set 0.2 or more it does not show anyy box or label.
回答(1 个)
Image Analyst
2023-9-19
0 个投票
I don't know what your detector does or how it operates or even what function you called. However maybe you can run through the bounding boxes and for those that have any overlapping area, take the bounding box of all the overlapped boxes.
9 个评论
ahmad
2023-9-19
ahmad
2023-9-19
Image Analyst
2023-9-19
I'm saying to construct the overall bounding box and get rid of the ones inside.
ahmad
2023-9-19
ahmad
2023-9-19
Image Analyst
2023-9-20
You forgot to attach "2_jpg.rf.e03c022bb9ccc6987308e66d130f4db7.jpg"
ahmad
2023-9-20
ahmad
2023-9-20
img = imread("C:\Users\ZBook\Desktop\New folder\new road.v2i.darknet\train\2_jpg.rf.e03c022bb9ccc6987308e66d130f4db7.jpg");
[bboxes,scores,labels] = detect(detector,img,'Threshold',thrusholdvalue);
detectedImg = insertObjectAnnotation(img,"Rectangle",bboxes,labels);
imshow(detectedImg)
类别
在 帮助中心 和 File Exchange 中查找有关 Object Detection 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!