flycapture相机及opencv在vs2010下的环境配置

opencv2410的配置:

    1、系统路径的修改:将“C:\OPENCV2410\OPENCV\BUILD\X86\VC10\BIN”添加到系统路径系下

    2、在vs2010的属性管理器Debug下新建一个名为opencv的属性单,点击右键选择属性,在vc++目录中,添加包含目录:C:\opencv2410\opencv\build\include    C:\opencv2410\opencv\build\include\opencv    C:\opencv2410\opencv\build\include\opencv2     添加库目录:C:\opencv2410\opencv\build\x86\vc10\lib  具体的路径随自己电脑上的opencv安装路径而定,最后在链接器-输入中的附加依赖项中添加如下内容:

opencv_ml2410d.lib

opencv_calib3d2410d.lib

opencv_contrib2410d.lib
opencv_core2410d.lib
opencv_features2d2410d.lib
opencv_flann2410d.lib
opencv_gpu2410d.lib
opencv_highgui2410d.lib
opencv_imgproc2410d.lib
opencv_legacy2410d.lib
opencv_objdetect2410d.lib
opencv_ts2410d.lib
opencv_video2410d.lib
opencv_nonfree2410d.lib
opencv_ocl2410d.lib
opencv_photo2410d.lib
opencv_stitching2410d.lib
opencv_superres2410d.lib

opencv_videostab2410d.lib

带d说明是在Debug模式下的属性配置.而在Release下配置属性基本同上,就是要将附加依赖项中的d去掉,如opencv_core2410d.lib变为opencv_core2410.lib

在程序中药包含头文件:#include   using namespace cv;

flycapture的配置(c++下):

1、添加环境变量:C:\Program Filles(X86)\Point Grey Research\FlyCapture2\bin

2、创建flycapture属性单,添加包含目录和库目录,基本同上面opencv的操作,还要添加链接器-输入中的附加依赖项:FlyCapture2.lib
FlyCapture2d.lib
FlyCapture2GUI.lib

FlyCapture2GUId.lib

是否带d也是在Debug和Release模式下配置的区别

头文件中包含: #include      using namespace FlyCapture2;

参考链接:https://www.cnblogs.com/grandyang/p/4263490.html

你可能感兴趣的:(科研)