添加文件
(1)项目属性->VC++目录->包含目录->(D:\opencv\opencv249\opencv\build\include\opencv),(D:\opencv\opencv249\opencv\build\include\opencv2),(D:\opencv\opencv249\opencv\build\include)
(2)项目属性->VC++目录->库目录->(D:\opencv\opencv249\opencv\build\x86\vc12\lib)
添加lib
项目属性->连接器->输入->附加依赖项
opencv_ml249d.lib
opencv_calib3d249d.lib
opencv_contrib249d.lib
opencv_core249d.lib
opencv_features2d249d.lib
opencv_flann249d.lib
opencv_gpu249d.lib
opencv_highgui249d.lib
opencv_imgproc249d.lib
opencv_legacy249d.lib
opencv_objdetect249d.lib
opencv_ts249d.lib
opencv_video249d.lib
opencv_nonfree249d.lib
opencv_ocl249d.lib
opencv_photo249d.lib
opencv_stitching249d.lib
opencv_superres249d.lib
opencv_videostab249d.lib