windows+vs2013+opencv3.2永久配置

1下载opencv-3.2.0-vc14,提取,新建build-3.2文件夹

2cmake编译源码生成vscode,configure,generate

windows+vs2013+opencv3.2永久配置_第1张图片

3打开opencv.sln

右键INSTALL,  build

windows+vs2013+opencv3.2永久配置_第2张图片

4系统环境变量D:\software\opencv\build-3.2\install\x64\vc12\bin


5file-new-project-visual c++ -win32consoleapplication

windows+vs2013+opencv3.2永久配置_第3张图片

6view-otherwindows-property manager-Debug| X64→Microsoft.Cpp.x64.user

可执行目录

windows+vs2013+opencv3.2永久配置_第4张图片

包含目录

windows+vs2013+opencv3.2永久配置_第5张图片


库目录

windows+vs2013+opencv3.2永久配置_第6张图片

附加依赖项

windows+vs2013+opencv3.2永久配置_第7张图片

opencv_calib3d320d.lib
opencv_core320d.lib
opencv_features2d320d.lib
opencv_flann320d.lib
opencv_highgui320d.lib
opencv_imgcodecs320d.lib
opencv_imgproc320d.lib
opencv_ml320d.lib
opencv_objdetect320d.lib
opencv_photo320d.lib
opencv_shape320d.lib
opencv_stitching320d.lib
opencv_superres320d.lib
opencv_video320d.lib
opencv_videoio320d.lib

opencv_videostab320d.lib

release库

opencv_calib3d320.lib
opencv_core320.lib
opencv_features2d320.lib
opencv_flann320.lib
opencv_highgui320.lib
opencv_imgcodecs320.lib
opencv_imgproc320.lib
opencv_ml320.lib
opencv_objdetect320.lib
opencv_photo320.lib
opencv_shape320.lib
opencv_stitching320.lib
opencv_superres320.lib
opencv_video320.lib
opencv_videoio320.lib

opencv_videostab320.lib

opencv3.4的话

opencv_calib3d340d.lib
opencv_core340d.lib
opencv_features2d340d.lib
opencv_aruco340d.lib
opencv_flann340d.lib
opencv_highgui340d.lib
opencv_imgcodecs340d.lib
opencv_imgproc340d.lib
opencv_ml340d.lib
opencv_objdetect340d.lib
opencv_photo340d.lib
opencv_shape340d.lib
opencv_stitching340d.lib
opencv_superres340d.lib
opencv_video340d.lib
opencv_videoio340d.lib
opencv_videostab340d.lib

7linker->all options->use libray dependency inputs

8测试

#include 

#include 

#include 

using namespace std;

using namespace cv;

int main()

{

	Mat img = imread("D:\\Users\\Public\\Project1\\1.jpg");

	if (img.empty())

	{

		cout << "error";

		system("pause");

		return -1;

	}

	imshow("1", img);

	waitKey();

	system("pause");

	return 0;

}

你可能感兴趣的:(windows+vs2013+opencv3.2永久配置)