Using Ground Truth for Object Detection - Error while running selectLabelsByGroup

5 views (last 30 days)
Hi guys,
I'm watching part 2 of the video "Using Ground truth for Object Detection".
In the video @ 4:09, the function "selectLabelsByGroup" is used to isolate the labels. The problem is, when I run the code, below error pups up. It says "check for the missing argument". I'm using the same files in the Exchange File and have no clue what I did wrong.
I attached the gTruthTraining.m for your reference. This incorporates gTruth variables.
Any suggestion is highly appreciated.

Answers (1)

Altaïr
Altaïr on 14 May 2025
The gTruth variable in the gTruthTraining.mat file is a groundTruth object, as described in the documentation available at:
However, the gTruth variable in the attached gTruthTraining.mat file appears to be of the groundTruthMultisignal type. The selectLabels object function is specifically designed for the groundTruth object. For future compatibility, it is advisable to use selectLabelsByGroup, selectLabelsByType, and selectLabelsByName, as selectLabels will be deprecated.
These functions can be explored further in the documentation with the following command:
web(fullfile(docroot, 'vision/ref/groundtruth.html#d123e114966'))
To select multisignal ground truth by label name from a groundTruthMultisignal object, the selectLabelsByLabelName function should be used. Additional details can be found with:
web(fullfile(docroot, 'driving/ref/groundtruthmultisignal.selectlabelsbylabelname.html'))

Community Treasure Hunt

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

Start Hunting!