Commit da229cce authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #3946 from zjulujia:bugfix_for_hog_detectMultiScale_with_weights

parents 36af97d0 7ce11669
...@@ -858,6 +858,7 @@ void HOGDescriptor::detect(const Mat& img, ...@@ -858,6 +858,7 @@ void HOGDescriptor::detect(const Mat& img,
Size winStride, Size padding, const vector<Point>& locations) const Size winStride, Size padding, const vector<Point>& locations) const
{ {
hits.clear(); hits.clear();
weights.clear();
if( svmDetector.empty() ) if( svmDetector.empty() )
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment