Merge pull request #3830 from NaerChang:issue.3710

pull/3809/merge
Vadim Pisarevsky 10 years ago
commit 259a54a6dd
  1. 2
      modules/objdetect/src/cascadedetect.cpp

@ -1268,7 +1268,7 @@ void CascadeClassifierImpl::detectMultiScaleNoGrouping( InputArray _image, std::
scales.push_back((float)factor);
}
if( !featureEvaluator->setImage(gray, scales) )
if( scales.size() == 0 || !featureEvaluator->setImage(gray, scales) )
return;
// OpenCL code

Loading…
Cancel
Save