Merge pull request #3901 from StevenPuttemans:add_breakrule_cascade_accuracy

This commit is contained in:
Vadim Pisarevsky 2015-04-03 13:24:47 +00:00
commit be9c6bdd67

View File

@ -218,7 +218,7 @@ bool CvCascadeClassifier::train( const string _cascadeDirName,
"Branch training terminated." << endl;
break;
}
if( (tempLeafFARate <= acceptanceRatioBreakValue) && (acceptanceRatioBreakValue < 0) ){
if( (tempLeafFARate <= acceptanceRatioBreakValue) && (acceptanceRatioBreakValue >= 0) ){
cout << "The required acceptanceRatio for the model has been reached to avoid overfitting of trainingdata. "
"Branch training terminated." << endl;
break;