Commit 07a58c47 authored by Teng Cao's avatar Teng Cao

Update cascadeclassifier.cpp

minor fix since predict() returun int
parent 4d598719
...@@ -336,7 +336,7 @@ int CvCascadeClassifier::fillPassedSamples( int first, int count, bool isPositiv ...@@ -336,7 +336,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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment