diff --git a/modules/objdetect/src/hog.cpp b/modules/objdetect/src/hog.cpp index 1eab434f66..0ed9bbca48 100644 --- a/modules/objdetect/src/hog.cpp +++ b/modules/objdetect/src/hog.cpp @@ -1060,7 +1060,9 @@ void HOGDescriptor::detectMultiScale( } else { - groupRectangles(foundLocations, (int)finalThreshold, 0.2); + vector dummy; + dummy.resize(foundLocations.size(), INT_MAX); + groupRectangles(foundLocations, (int)finalThreshold, 0.2, &dummy, &foundWeights); } }