zoukankan      html  css  js  c++  java
  • opencv2411配置

    批量复制文件夹中的文件名:

    例如要得到d:my 里的文件名
    运行里输入 cmd
    在黑窗口输入 cd /d "d:my" ,按回车
    在黑窗口输入 dir /b >c:files.txt ,按回车
    那么c:files.txt就有文件名列表了

    Release的属性中:链接器-》输入-》附加依赖项
    opencv_contrib2411.lib
    opencv_calib3d2411.lib
    opencv_core2411.lib
    opencv_features2d2411.lib
    opencv_flann2411.lib
    opencv_gpu2411.lib
    opencv_highgui2411.lib
    opencv_imgproc2411.lib
    opencv_legacy2411.lib
    opencv_ml2411.lib
    opencv_nonfree2411.lib
    opencv_ocl2411.lib
    opencv_objdetect2411.lib
    opencv_photo2411.lib
    opencv_stitching2411.lib
    opencv_superres2411.lib
    opencv_ts2411.lib
    opencv_video2411.lib
    opencv_videostab2411.lib


    Debug的属性中:链接器-》输入-》附加依赖项
    opencv_flann2411d.lib
    opencv_calib3d2411d.lib
    opencv_contrib2411d.lib
    opencv_core2411d.lib
    opencv_features2d2411d.lib
    opencv_gpu2411d.lib
    opencv_highgui2411d.lib
    opencv_imgproc2411d.lib
    opencv_legacy2411d.lib
    opencv_ml2411d.lib
    opencv_nonfree2411d.lib
    opencv_objdetect2411d.lib
    opencv_ocl2411d.lib
    opencv_photo2411d.lib
    opencv_stitching2411d.lib
    opencv_superres2411d.lib
    opencv_ts2411d.lib
    opencv_video2411d.lib
    opencv_videostab2411d.lib

    配置环境变量
    1.系统变量 Path:添加D:Program Filesopencvuildx86vc12in
    2.用户变量:添加opencv变量,值D:Program Filesopencvuild,添加PATH变量(有就不需要添加,但是值需要添加)值D:Program Filesopencvuildx86vc12in
    (说明:不管你系统是32位还是64位,路径目录均选择X86,因为编译都是使用32位编译;如果选用X64,则程序运行时候会出错。)

    工程目录的配置(Debug)
    1.VC++目录-》包含目录:
    D:Program Filesopencvuildinclude
    D:Program Filesopencvuildincludeopencv
    D:Program Filesopencvuildincludeopencv2
    2.VC++目录-》库目录:
    D:Program Filesopencvuildx86vc12lib
    3.链接器-》输入-》附加依赖项

    配置Release工程目录:
    其他与Debug一样,只是连接器->输入->附加依赖项不一样

  • 相关阅读:
    c语言,动态数组
    利用Word来发布博客到博客园(onenote类似)
    c语言,volatile
    c语言,变长数组
    C语言,sprintf与sscanf函数[总结]
    c语言,数组和指针
    Linux的notifier机制的应用
    Linux进程上下文切换过程context_switch详解--Linux进程的管理与调度(二十一)
    内核线程的进程描述符task_struct中的mm和active_mm
    Linux用户抢占和内核抢占详解(概念, 实现和触发时机)--Linux进程的管理与调度(二十)
  • 原文地址:https://www.cnblogs.com/begoogatprogram/p/5733948.html
Copyright © 2011-2022 走看看