Update cascadeclassifier.cpp
minor fix since predict() returun int
This commit is contained in:
parent
38bbfe0bb8
commit
8562bb7092
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user