bugfix_for_hog_detectMultiScale_with_weights

This commit is contained in:
lujia 2015-04-21 02:32:27 -04:00
parent c879b1ab09
commit 7ce116695d

View File

@ -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;