trainCascadeObjectDetector does not work with image laberel
古いコメントを表示
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?"
%% COD Training
%% Load positive images and bounding boxes of bikes
load imageLabelingSession % Hier Training von Image Labeler mit Personen
%% Step 2: Specify folder with negative images
negativeFolder = 'C:\Users\Alami Merrouni\OneDrive\Desktop\7. Semster\Bachelorarbeit\Liegende Personen detektieren\Trainingsdaten\keine Personen'; % Hier Bilder von keine Personen einfügen
%% Step 3: Train the detector
NumStages = 5;
FAR = 0.05;
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,...
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Object Detection についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!