Update cascadeclassifier.cpp

minor fix since predict() returun int
pull/5731/head
teng88 9 years ago
parent 38bbfe0bb8
commit 8562bb7092
  1. 2
      apps/traincascade/cascadeclassifier.cpp

@ -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…
Cancel
Save