OpenCV 3.1 CUDA ERROR help me

asked 2016-10-21 08:22:02 -0600

Ustaa gravatar image

updated 2016-10-21 11:33:14 -0600

Have a nice day. What is the solution for this error?

OpenCV Version: OpenCV 3.1

Cuda Version: v8.0

Graphics Card: NVIDIA GeForce GT 650M 2 GB DDR3

Ram : 4 GB

source code:

#ifdef _DEBUG               
#pragma comment(lib, "opencv_core310d.lib")       
#pragma comment(lib, "opencv_highgui310d.lib")    
#pragma comment(lib, "opencv_imgcodecs310d.lib")  
#pragma comment(lib, "opencv_videoio310d.lib")  
#pragma comment(lib, "opencv_imgproc310d.lib")  
#pragma comment(lib, "opencv_features2d310d.lib")  
#pragma comment(lib, "opencv_xfeatures2d310d.lib")
#pragma comment(lib, "opencv_flann310d.lib")    
#pragma comment(lib, "opencv_calib3d310d.lib")  
#pragma comment(lib, "opencv_video310d.lib")  
#endif 
#include "opencv2/core.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/features2d.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/calib3d.hpp"
#include "opencv2/xfeatures2d.hpp"
#include<opencv2\core\cuda.hpp>
int main(int argc, char** argv)
{
    cuda::GpuMat a;
    Mat image1 = imread("D:/proje/projeler/drone test/test1/frame00000.jpg");
    a.upload(image1);
}

Error Message:

Unhandled exception at 0x00007FFDB6EA7788 in Cuda.exe: Microsoft C++ exception: cv::Exception at memory location 0x0000000DBE0FE8C0.

OpenCV Error: No CUDA support (The library is compiled without CUDA support) in throw_no_cuda, file D:\OpencvDosyalar\opencv\sources\modules\core\include\opencv2/core/private.cuda.hpp, line 97

edit retag flag offensive close merge delete

Comments

this will get re-opened, as soon as you remove the screenshots, and replace them with a text version !

berak gravatar imageberak ( 2016-10-21 09:15:42 -0600 )edit

thanks a ton !

berak gravatar imageberak ( 2016-10-21 11:53:42 -0600 )edit

did you build the opencv libs locally(with cuda sdk present) ?

if you're using prebuild libs (e.g. from sourceforge), they all are bare metal, and do not have any hw support built in.

berak gravatar imageberak ( 2016-10-21 11:56:05 -0600 )edit