mirror of
https://github.com/opencv/opencv.git
synced 2025-07-24 14:06:27 +08:00
This statement was keeping HAAR cascades from leveraging opencl on nvidia devices. "localSize" on the featureEvaluator remains Size(0, 0) which sets the bool "use_ocl" to false. Adding this allows NVidia GPUs to leverage opencl HAAR Cascades
This commit is contained in:
parent
af8ed9d09f
commit
b2d8e8c508
@ -609,7 +609,7 @@ bool HaarEvaluator::read(const FileNode& node, Size _origWinSize)
|
||||
localSize = lbufSize = Size(0, 0);
|
||||
if (ocl::haveOpenCL())
|
||||
{
|
||||
if (ocl::Device::getDefault().isAMD() || ocl::Device::getDefault().isIntel())
|
||||
if (ocl::Device::getDefault().isAMD() || ocl::Device::getDefault().isIntel() || ocl::Device::getDefault().isNVidia())
|
||||
{
|
||||
localSize = Size(8, 8);
|
||||
lbufSize = Size(origWinSize.width + localSize.width,
|
||||
|
Loading…
Reference in New Issue
Block a user