From 7ce116695d616f73e285e55e0a38fa5fa6e5b097 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 --- 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 389fa09347..9ba4a7bba2 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;