Disabling reset of 'weights' array for reject level mode of groupRectangles function.

pull/9683/head
Vitaly Tuzov 8 years ago
parent cc547e8260
commit 9a70fd0123
  1. 2
      modules/objdetect/src/cascadedetect.cpp

@ -64,7 +64,7 @@ void groupRectangles(std::vector<Rect>& rectList, int groupThreshold, double eps
if( groupThreshold <= 0 || rectList.empty() )
{
if( weights )
if( weights && !levelWeights )
{
size_t i, sz = rectList.size();
weights->resize(sz);

Loading…
Cancel
Save