diff --git a/modules/objdetect/src/cascadedetect.cpp b/modules/objdetect/src/cascadedetect.cpp index c62dbfb2c8..2289c73737 100644 --- a/modules/objdetect/src/cascadedetect.cpp +++ b/modules/objdetect/src/cascadedetect.cpp @@ -89,7 +89,7 @@ void groupRectangles(std::vector& rectList, int groupThreshold, double eps rweights[cls]++; } - bool useDefaultWeights = false; + bool useDefaultWeights = false; if ( levelWeights && weights && !weights->empty() && !levelWeights->empty() ) { @@ -105,8 +105,8 @@ void groupRectangles(std::vector& rectList, int groupThreshold, double eps rejectWeights[cls] = (*levelWeights)[i]; } } - else - useDefaultWeights = true; + else + useDefaultWeights = true; for( i = 0; i < nclasses; i++ ) {