此方法配置简单,方便易行,解压opencv2.4.13后得到opencv文件夹,进行如下步骤: 1.添加环境变量 用户变量,新建,变量名opencv,值D:\opencv\build 系统变量,Path中添加D:\opencv\build\x86\vc12\bin 2.新建opencv2413_debug.txt,记事本打开复制粘贴如下内容: 注意将代码中路径D:\opencv\build\include;D:\opencv\build\include\opencv;D:\opencv\buil…