一、配置環境變量,例如 D:opencv3.0.0opencvbuildx86vc12binui
二、Debug|Win32 屬性中配置 VC++目錄/包含目錄:
D:opencv3.0.0opencvbuildincludeopencv2
D:opencv3.0.0opencvbuildincludeopencv
D:opencv3.0.0opencvbuildincludedebug
三、Debug|Win32 屬性中配置 VC++目錄/庫目錄:
D:opencv3.0.0opencvbuildx86vc12lib圖片
四、配置 連接器/輸入/附加依賴項:
opencv_world300d.lib (d 表明dubug)it
五、debug運行後提示 丟失msvcp120d.dll:
msvcp120d.dll
msvcr120d.dll
兩個文件複製到環境變量路徑 D:opencv3.0.0opencvbuildx86vc12binopencv
六、Opencv imshow顯示不出來圖片:
waitKey(0);變量