selectLabelsByName not working on MATLAB 2020B

1 vue (au cours des 30 derniers jours)
Shubham Nipanikar
Shubham Nipanikar le 16 Nov 2020
Commenté : Steven Lord le 31 Mai 2022
So I have labeled a sequence of images and I want to run it through objectDetectorTrainingData() and trainACFObjectDetector(). However, if I try to use selectLabelsByName(), matlab says that function cannot be found. I have literally all the add-ons installed so I don't know how this is possible

Réponses (1)

Steven Lord
Steven Lord le 17 Nov 2020
According to the Support site's documentation search it appears there are two functions by that name. Because of the categories and tags for this question I'm assuming you're trying to use the one in Computer Vision Toolbox.
That documentation page states that the first input, gTruth, must be a "groundTruth object | vector of groundTruth objects". Are you trying to call this function with a groundTruth object or a vector of groundTruth objects as the first input? If you're trying to call this with say a double array as the first input that will not work.
  2 commentaires
Shawn Navarednam
Shawn Navarednam le 30 Mai 2022
I'm experiencing the exact same issue with selectLabelsByName.I literally have ALL matlab add-ons available, but am unable to find this function anywhere. My first and second inputs are definitely correct, it's just that Matlab isn't able to recognise the function (or maybe just not downloaded). Same with selectLabelsByGroup and selectLabelsByType.
Error shows: Unrecognized function or variable 'selectLabelsByName'.
Is there a way around this? I've also checked the Matlab paths, which seems to read the add-on toolboxes.
Steven Lord
Steven Lord le 31 Mai 2022
Show us how you're trying to call selectLabelsByName and show us the output of the whos function called immediately before that call to selectLabelsByName in your function, so we can confirm that the first input is of the correct type. Set a breakpoint on the line that calls selectLabelsByName and then call whos.
As I stated above, selectLabelsByName can only be called if the first input is a groundTruth object.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by