
Using Ground Truth for Object Detection - Error while running selectLabelsByGroup
5 次查看(过去 30 天)
显示 更早的评论
Hi guys,
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.

0 个评论
回答(1 个)
Altaïr
2025-5-14
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'))
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!