I am attempting to use COD-Detector in MATLAB to detect regions of interest (ROIs). To define positiveInstances, I used Image Labeler to identify the ROIs and then exported the groundTruth to the workspace. However, I keep encountering an error message indicating that the data is invalid. I have attempted to export the ROIs as both groundTruth and as a table from Image Labeler, but I still receive the error message. What steps can I take to resolve this issue?"
load imageLabelingSession
negativeFolder = 'C:\Users\Alami Merrouni\OneDrive\Desktop\7. Semster\Bachelorarbeit\Liegende Personen detektieren\Trainingsdaten\keine Personen';
trainCascadeObjectDetector('detectcodtraining_5_5.xml', person, negativeFolder,...
'NumCascadeStages', NumStages, 'FalseAlarmRate', FAR);
the Error:
Error using trainCascadeObjectDetector>parseInputs
The value of 'positiveInstances' is invalid. Expected input number 2, positiveInstances, to be one of these types:
struct, char, table, matlab.io.datastore.Datastore, matlab.io.Datastore
Instead its type was groundTruth.
Error in trainCascadeObjectDetector (line 210)
parser = parseInputs(varargin{:});
Error in coddetetctor (line 25)
trainCascadeObjectDetector('detectcodtraining_5_5.xml', gTruth, negativeFolder,...