Ask Your Question

Ustaa's profile - activity

2016-10-21 11:33:14 -0600 received badge  Editor (source)
2016-10-21 09:14:07 -0600 asked a question OpenCV 3.1 CUDA ERROR help me

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