I have "successfully" compiled OpenCV v4.2.0-dev with python bindings and CUDA support on my Windows 10 machine following the many directions available online. I say successfully because compilation didn't throw errors. However, when I try to run a cv2.cuda command, I get an error such as:
>>>q=cv2.cuda.resize(base,dsize=(100,100))
---------------------------------------------------------------------------
error Traceback (most recent call last) <ipython-input-10-f4bd798fbe4a> in <module>
----> 1 q=cv2.cuda.resize(base,dsize=(100,100))
error: OpenCV(4.2.0-dev) C:\Users\M43259\Documents\python\opencv\modules\core\src\matrix_wrap.cpp:359: error: (-213:The function/feature is not implemented) getGpuMat is available only for cuda::GpuMat and cuda::HostMem in function 'cv::_InputArray::getGpuMat'
It turns out there is no python call available that has anything with GpuMAT in it. For example:
>>>cv2.cuda_GpuMAT()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last) <ipython-input-11-c14055330a2d> in <module>
----> 1 cv2.cuda_GpuMAT()
AttributeError: module 'cv2' has no attribute 'cuda_GpuMAT'
I'm stumped. I can provide loads of files and details if anyone wants.