Merge pull request #3971 from Dikay900:2_4_to_master_3

This commit is contained in:
Vadim Pisarevsky
2015-05-17 00:28:30 +00:00
2 changed files with 2 additions and 1 deletions

View File

@@ -1459,6 +1459,7 @@ void HOGDescriptor::detect(const Mat& img,
Size winStride, Size padding, const std::vector<Point>& locations) const
{
hits.clear();
weights.clear();
if( svmDetector.empty() )
return;