问题
I am using OpenCV 2.3.1 with CUDA 4.0.
I have installed the OpenCV 2.3.1 by CMAKE with WITH_CUDA flag on. And then I compiled the OpenCV solution in release and debug mode, but still when I used the getCudaEnabledDevice
function of CV::GPU
it is returning 0. This means it is not detecting the CUDA enabled device.
It seems that I have done everything right, still what is happening??
Can Anybody suggest where can be the problem now??.
Thanks in advance.
回答1:
I had the same problem. I fixed it by
copying opencv_core243d.dll from E:\opencv\build\gpu\x64\vc10\lib
folder to the work directory with the .exe.
Don't know why that should matter but it did.
Using cuda 5.0
VS2010 express
win 7 x64
来源:https://stackoverflow.com/questions/10613809/compiling-opencv-with-gpu-cuda-support