Cant able to display bounding box from detector on the image ?
3 次查看(过去 30 天)
显示 更早的评论
I = imread(testDataTbl.imageFilename{3});
I = imresize(I,inputSize(1:2));
[bboxes,scores] = detect(detector,I);
I = insertObjectAnnotation(I,'rectangle',bboxes,scores);
figure
imshow(I)
I am using the above code to display the results from object detector. I can see just picture but I can't get the bounding box with the score. Both were showing empty with no values in those. How can this problem can be solved ?
2 个评论
Image Analyst
2024-2-12
I don't know. Give us the image and the rest of the code.
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
Udit06
2024-2-19
Hi Sahik,
If both bboxes and scores are empty on running the detect function, it means no objects were detected in the image. This could be due to multiple reasons like object to be detected not present in the original image, detector not trained properly, etc.
If you want any specific help, please share the image and detector that you are using which will be helpful for others to reproduce the issue that you are facing on their end.
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!