bugfix_for_hog_detectMultiScale_with_weights
authorlujia <lujia@zerozero.cn>
Tue, 21 Apr 2015 06:32:27 +0000 (02:32 -0400)
committerlujia <lujia@zerozero.cn>
Tue, 21 Apr 2015 06:32:27 +0000 (02:32 -0400)
modules/objdetect/src/hog.cpp

index 389fa09..9ba4a7b 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;