From 07a58c47cb75e2cd875595e01afe33d2c7881971 Mon Sep 17 00:00:00 2001 From: Teng Cao Date: Wed, 2 Dec 2015 17:31:17 +0800 Subject: [PATCH] Update cascadeclassifier.cpp minor fix since predict() returun int --- apps/traincascade/cascadeclassifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/traincascade/cascadeclassifier.cpp b/apps/traincascade/cascadeclassifier.cpp index aa97708..1c09a96 100644 --- a/apps/traincascade/cascadeclassifier.cpp +++ b/apps/traincascade/cascadeclassifier.cpp @@ -336,7 +336,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); -- 2.7.4