From 17cc5e2c40777e83952241430a4cf1419df6ef87 Mon Sep 17 00:00:00 2001 From: lujia Date: Tue, 21 Apr 2015 02:32:27 -0400 Subject: [PATCH] bugfix_for_hog_detectMultiScale_with_weights (cherry picked from commit 7ce116695d616f73e285e55e0a38fa5fa6e5b097) --- modules/objdetect/src/hog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/objdetect/src/hog.cpp b/modules/objdetect/src/hog.cpp index 1c0fbf2aea..fa9df768b6 100644 --- a/modules/objdetect/src/hog.cpp +++ b/modules/objdetect/src/hog.cpp @@ -858,6 +858,7 @@ void HOGDescriptor::detect(const Mat& img, Size winStride, Size padding, const vector& locations) const { hits.clear(); + weights.clear(); if( svmDetector.empty() ) return;