Too Many input arguments

1 view (last 30 days)
Ahmed Zahran
Ahmed Zahran on 11 Mar 2015
Commented: Dima Lisin on 11 Mar 2015
in this code :
load('handFrontalClosedSession.mat');
imDir = fullfile ('/Users/aZahran/Desktop/TrainingSet');
addpath('/Users/aZahran/Desktop/TrainingSet');
negatives = fullfile ('/Users/aZahran/Desktop/negativeSet');
trainCascadeObjectDetector('stopSignDetector.xml',positiveInstances,negatives);
I changed some stuff in both folders, TrainingSet and negative Set, but the code was the same and it started throwing this exception, I reduced the data back to roughly their original sizes but not the same data, couldn't recognise the old ones from the new ones, but I think it has nothing to do with the data, any help would be appreciated the exception :
Error using trainCascadeObjectDetector (line 245)
Too many input arguments.
Error in Untitled (line 5)
trainCascadeObjectDetector('HandDetectorHaar.xml',positiveInstances,negatives,'TruePositiveRate',0.995,'FeatureType','Haar','NumCascadeStages',14);
  3 Comments
Ahmed Zahran
Ahmed Zahran on 11 Mar 2015
a struct of the exported ROIs from the image labeller
Dima Lisin
Dima Lisin on 11 Mar 2015
Hi Ahmed,
Your code doesn't seem to match the line that the error refers to. Can you please post the actual code that is causing the error?

Sign in to comment.

Answers (0)

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!