Update cascadeclassifier.cpp

minor fix since predict() returun int
This commit is contained in:
teng88 2015-12-02 11:50:22 +08:00
parent 38bbfe0bb8
commit 8562bb7092

View File

@ -332,7 +332,7 @@ int CvCascadeClassifier::fillPassedSamples( int first, int count, bool isPositiv
consumed++; consumed++;
featureEvaluator->setImage( img, isPositive ? 1 : 0, i ); featureEvaluator->setImage( img, isPositive ? 1 : 0, i );
if( predict( i ) == 1.0F ) if( predict( i ) == 1 )
{ {
getcount++; getcount++;
printf("%s current samples: %d\r", isPositive ? "POS":"NEG", getcount); printf("%s current samples: %d\r", isPositive ? "POS":"NEG", getcount);