Commit bc730292 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

workaround for some strange bug on old Mac.

parent 8998186c
......@@ -1312,6 +1312,7 @@ void CascadeClassifierImpl::detectMultiScaleNoGrouping( InputArray _image, std::
bool use_ocl = ocl::useOpenCL() &&
(featureType == FeatureEvaluator::HAAR ||
featureType == FeatureEvaluator::LBP) &&
ocl::Device::getDefault().type() != ocl::Device::TYPE_CPU &&
!isOldFormatCascade() &&
data.isStumpBased() &&
maskGenerator.empty() &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment