mirror of
https://github.com/opencv/opencv.git
synced 2024-12-11 22:59:16 +08:00
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++;
|
||||
|
||||
featureEvaluator->setImage( img, isPositive ? 1 : 0, i );
|
||||
if( predict( i ) == 1.0F )
|
||||
if( predict( i ) == 1 )
|
||||
{
|
||||
getcount++;
|
||||
printf("%s current samples: %d\r", isPositive ? "POS":"NEG", getcount);
|
||||
|
Loading…
Reference in New Issue
Block a user