批量复制文件夹中的文件名:
例如要得到d:\my 里的文件名
运行里输入 cmd 在黑窗口输入 cd /d "d:\my" ,按回车在黑窗口输入 dir /b >c:\files.txt ,按回车那么c:\files.txt就有文件名列表了Release的属性中:链接器-》输入-》附加依赖项
opencv_contrib2411.libopencv_calib3d2411.libopencv_core2411.libopencv_features2d2411.libopencv_flann2411.libopencv_gpu2411.libopencv_highgui2411.libopencv_imgproc2411.libopencv_legacy2411.libopencv_ml2411.libopencv_nonfree2411.libopencv_ocl2411.libopencv_objdetect2411.libopencv_photo2411.libopencv_stitching2411.libopencv_superres2411.libopencv_ts2411.libopencv_video2411.libopencv_videostab2411.lib Debug的属性中:链接器-》输入-》附加依赖项opencv_flann2411d.libopencv_calib3d2411d.libopencv_contrib2411d.libopencv_core2411d.libopencv_features2d2411d.libopencv_gpu2411d.libopencv_highgui2411d.libopencv_imgproc2411d.libopencv_legacy2411d.libopencv_ml2411d.libopencv_nonfree2411d.libopencv_objdetect2411d.libopencv_ocl2411d.libopencv_photo2411d.libopencv_stitching2411d.libopencv_superres2411d.libopencv_ts2411d.libopencv_video2411d.libopencv_videostab2411d.lib配置环境变量
1.系统变量 Path:添加D:\Program Files\opencv\build\x86\vc12\bin2.用户变量:添加opencv变量,值D:\Program Files\opencv\build,添加PATH变量(有就不需要添加,但是值需要添加)值D:\Program Files\opencv\build\x86\vc12\bin(说明:不管你系统是32位还是64位,路径目录均选择X86,因为编译都是使用32位编译;如果选用X64,则程序运行时候会出错。)工程目录的配置(Debug)
1.VC++目录-》包含目录:D:\Program Files\opencv\build\includeD:\Program Files\opencv\build\include\opencvD:\Program Files\opencv\build\include\opencv22.VC++目录-》库目录:D:\Program Files\opencv\build\x86\vc12\lib3.链接器-》输入-》附加依赖项配置Release工程目录:
其他与Debug一样,只是连接器->输入->附加依赖项不一样