Merge pull request #3946 from zjulujia:bugfix_for_hog_detectMultiScale_with_weights

This commit is contained in:
Vadim Pisarevsky 2015-04-28 10:54:45 +00:00
commit da229cce9a

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