フィルターのクリア

Getting error while training my cascade classifier ?

1 回表示 (過去 30 日間)
shorav suriyal
shorav suriyal 2017 年 8 月 17 日
コメント済み: shorav suriyal 2017 年 8 月 24 日
I am trying to build my cascade classifier that can detect an area of image basically i want to get eyes from a face image. For this i am using image labeling. i have both positive and negative folder with more than 10 images Error: The total number of samples (both positive and negative together) must be greater than 10. You should add more positive samples, or increase 'NegativeSamplesFactor', or both.
Error in trainCascadeObjectDetector (line 173) featureParams, totalPosInstances] = populateTrainCascadeParams(parser);
Error in cascade (line 28) trainCascadeObjectDetector('eyes.xml',positiveInstances, ...

採用された回答

Mabin Mariam Joseph
Mabin Mariam Joseph 2017 年 8 月 22 日
From the error snapshots attached, I see that the positives and negatives directories are not what is being specified by the attached code.
In the code it is : your_matlabroot\toolbox\vision\visiondata\positives and your_matlabroot\toolbox\vision\visiondata\negatives respectively which is different from the directories seen in the error snapshots.
Try the code after pointing to the correct directories.
  1 件のコメント
shorav suriyal
shorav suriyal 2017 年 8 月 24 日
Thanks it your solution worked...Thanks again

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeComputer Vision Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by