Clear Filters
Clear Filters

Cant able to display bounding box from detector on the image ?

9 views (last 30 days)
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 Comments
Image Analyst
Image Analyst on 12 Feb 2024
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
Udit06 on 19 Feb 2024
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.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!