selectLabelsByName not working on MATLAB 2020B
Show older comments
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
Answers (1)
Steven Lord
on 17 Nov 2020
0 votes
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 Comments
Shawn Navarednam
on 30 May 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
on 31 May 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.
Categories
Find more on Computer Vision Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!