workaround for some strange bug on old Mac.
This commit is contained in:
parent
8998186ce4
commit
bc730292bb
@ -1312,6 +1312,7 @@ void CascadeClassifierImpl::detectMultiScaleNoGrouping( InputArray _image, std::
|
|||||||
bool use_ocl = ocl::useOpenCL() &&
|
bool use_ocl = ocl::useOpenCL() &&
|
||||||
(featureType == FeatureEvaluator::HAAR ||
|
(featureType == FeatureEvaluator::HAAR ||
|
||||||
featureType == FeatureEvaluator::LBP) &&
|
featureType == FeatureEvaluator::LBP) &&
|
||||||
|
ocl::Device::getDefault().type() != ocl::Device::TYPE_CPU &&
|
||||||
!isOldFormatCascade() &&
|
!isOldFormatCascade() &&
|
||||||
data.isStumpBased() &&
|
data.isStumpBased() &&
|
||||||
maskGenerator.empty() &&
|
maskGenerator.empty() &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user