From b73894b27197c98e341571666c1e4852e31961f7 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 32a6a21b92..bbdc0beb2a 100644 --- a/modules/objdetect/src/hog.cpp +++ b/modules/objdetect/src/hog.cpp @@ -1453,6 +1453,7 @@ void HOGDescriptor::detect(const Mat& img, Size winStride, Size padding, const std::vector& locations) const { hits.clear(); + weights.clear(); if( svmDetector.empty() ) return;