1.官网下载OpenCV2.4.11:https://opencv.org/releases.html
选择视窗,下载得到.exe可执行文件
2.放到合适地点,双击下载好的可执行文件提取内容;
3.在系统环境变量下
新建系统变量:OpenCV,E:\OpenCV\opencv\build
找到环境变量Path:添加%OPENCV%\x86\vc12\bin
4.新建opencv2411.props
内容如下:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<IncludePath>$(OPENCV)\include;$(IncludePath)</Inclu