Skip to content

Troubleshooting

Seongjoon Chu edited this page Mar 2, 2017 · 1 revision

OpenCV CUDA Libraries

Having trouble building OpenCV libraries with CMake? No worries, just use the prebuilt OpenCV libraries provided through nuget.

Linker Errors

Getting Linker Errors (LNKxxxx)?

Go to:

 My Project --> properties --> linker --> input --> additional dependencies

and change the path of your Linker dependencies to

opencv_calib3d310.lib;opencv_core310.lib;opencv_features2d310.lib;opencv_flann310.lib;opencv_highgui310.lib;opencv_imgcodecs310.lib;opencv_imgproc310.lib;opencv_ml310.lib;opencv_objdetect310.lib;opencv_photo310.lib;opencv_shape310.lib;opencv_stitching310.lib;opencv_superres310.lib;opencv_ts310.lib;opencv_video310.lib;opencv_videoio310.lib;opencv_videostab310.lib;opencv_viz310.lib;%(AdditionalDependencies)

Then, go to

C/C++ --> general --> additional #include dependencies

and change the path to where your opencv libraries are located

Assertion failed

Getting an error that looks like this when in Debug mode?

OpenCV Error: Assertion failed (src.checkVector(2, CV_32F) == 4 && dst.checkVect or(2, CV_32F) == 4) in cv::getPerspectiveTransform, file ...\opencv_sources\modules\imgproc\src\imgwarp.cpp, line 6353
  • Switch to Release build for now. Usually this is caused by a wrong Mat type being used (in this case, CV_32F).

Or this?

OpenCV Error: Assertion failed (ssize.area() > 0) in cv::remapBilinear, file ...\opencv\sources\modules\imgproc\src\imgwarp.cpp, line 3868 
Clone this wiki locally