mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 14:13:15 +08:00
Merge pull request #3830 from NaerChang:issue.3710
This commit is contained in:
commit
259a54a6dd
@ -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…
Reference in New Issue
Block a user