Commit 7ce11669 authored by lujia's avatar lujia

bugfix_for_hog_detectMultiScale_with_weights

parent c879b1ab
...@@ -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