Skip to content

Commit a6d634b

Browse files
committed
Merge pull request opencv#9683 from terfendail:grects_weights
2 parents af8fc3e + 9a70fd0 commit a6d634b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/objdetect/src/cascadedetect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void groupRectangles(std::vector<Rect>& rectList, int groupThreshold, double eps
6464

6565
if( groupThreshold <= 0 || rectList.empty() )
6666
{
67-
if( weights )
67+
if( weights && !levelWeights )
6868
{
6969
size_t i, sz = rectList.size();
7070
weights->resize(sz);

0 commit comments

Comments
 (0)