bugfix_for_hog_detectMultiScale_with_weights
authorlujia <lujia@zerozero.cn>
Tue, 21 Apr 2015 06:32:27 +0000 (02:32 -0400)
committerAlexander Smorkalov <alexander.smorkalov@itseez.com>
Wed, 6 May 2015 13:24:39 +0000 (16:24 +0300)
(cherry picked from commit 7ce116695d616f73e285e55e0a38fa5fa6e5b097)

modules/objdetect/src/hog.cpp

index 1c0fbf2..fa9df76 100644 (file)
@@ -858,6 +858,7 @@ void HOGDescriptor::detect(const Mat& img,
     Size winStride, Size padding, const vector<Point>& locations) const
 {
     hits.clear();
+    weights.clear();
     if( svmDetector.empty() )
         return;