Effacer les filtres
Effacer les filtres

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

9 vues (au cours des 30 derniers jours)
Sahik Ha.adi
Sahik Ha.adi le 12 Fév 2024
Commenté : Udit06 le 19 Fév 2024
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 commentaires
Image Analyst
Image Analyst le 12 Fév 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 le 19 Fév 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.

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by