From f024425dd0e61e392eee66d6481580e2cc3a25b1 Mon Sep 17 00:00:00 2001 From: kupferb <33594117+kupferb@users.noreply.github.com> Date: Thu, 9 May 2019 11:27:04 +0300 Subject: [PATCH] Update haarfeatures.cpp Detailed description for my proposal can be found here https://github.com/opencv/opencv/issues/14128 --- apps/traincascade/haarfeatures.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/traincascade/haarfeatures.cpp b/apps/traincascade/haarfeatures.cpp index f2d18229e8..c151ee7963 100644 --- a/apps/traincascade/haarfeatures.cpp +++ b/apps/traincascade/haarfeatures.cpp @@ -153,14 +153,14 @@ void CvHaarEvaluator::generateFeatures() { features.push_back( Feature( offset, false, x, y, dx*3, dy, -1, - x+dx, y, dx , dy, +3 ) ); + x+dx, y, dx , dy, +2 ) ); } // haar_y3 if ( (x+dx <= winSize.width) && (y+dy*3 <= winSize.height) ) { features.push_back( Feature( offset, false, x, y, dx, dy*3, -1, - x, y+dy, dx, dy, +3 ) ); + x, y+dy, dx, dy, +2 ) ); } if( mode != CvHaarFeatureParams::BASIC ) {