diff --git a/modules/objdetect/src/cascadedetect.cpp b/modules/objdetect/src/cascadedetect.cpp index 3f0e6e38ce..2d5c0795dc 100644 --- a/modules/objdetect/src/cascadedetect.cpp +++ b/modules/objdetect/src/cascadedetect.cpp @@ -765,11 +765,8 @@ bool LBPEvaluator::read( const FileNode& node, Size _origWinSize ) nchannels = 1; localSize = lbufSize = Size(0, 0); if (ocl::haveOpenCL()) - { - const ocl::Device& device = ocl::Device::getDefault(); - if (device.isAMD() && !device.hostUnifiedMemory()) - localSize = Size(8, 8); - } + localSize = Size(8, 8); + return true; }