opencv4.2+cuda10.0 无法执行这条语句Ptr<cuda::CascadeClassifier> cascade_gpu = cuda::CascadeClassifier::create("haarcascade_frontalface_default.xml")?

这段代码好像就是读取分类器,但是我再使用的时候编译是没有出错的,但就是运行的时候就报错弹出
exc {msg="OpenCV(4.2.0) E:\opencv-4.2.0\modules\core\include\opencv2/core/private.cuda.hpp:115: error: (-213:The function/feature is not implemented) The called functionality is disabled for current build or pl... ...}

我的CUDA环境应该是装好了的,因为可以用gpuMat这个类,而且可以运行带有核函数的代码。

出错的页面

#include "precomp.hpp"
#if !defined (HAVE_CUDA) || defined (CUDA_DISABLER)

换成

#include "precomp.hpp"
#if !defined (HAVE_CUDA) || defined (CUDA_DISABLER)  || (CUDART_VERSION >= 8000)

试一下,排除一下graphcuts不被Cuda10支持情况