This statement was keeping HAAR cascades from leveraging opencl on nvidia devices...
authorGeoff McIver <geoff@p0wdr.com>
Tue, 10 Oct 2017 20:32:38 +0000 (09:32 +1300)
committerGeoff McIver <geoff@p0wdr.com>
Tue, 10 Oct 2017 20:32:38 +0000 (09:32 +1300)
modules/objdetect/src/cascadedetect.cpp

index 9b21f19..242fac3 100644 (file)
@@ -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,