首页 > 代码库 > win7 x64+vs2010 x64debug+openCV2.4.10
win7 x64+vs2010 x64debug+openCV2.4.10
下载安装程序,我把其解压在E:\opencv,这里解压到自己建立的文件夹opencv下是多此一举。
添加值
E:\opencv\opencv\build\x86\vc10\bin;E:\opencv\opencv\build\x86\vc10\lib(这个不加貌似也可以);E:\opencv\opencv\build\x64\vc10\bin
到环境变量path中。
注销或者重启系统使环境变量生效。
新建一个空的64bit控制台项目添加:
在E:\opencv\opencv\build\x64\vc10\lib目录下建立一个批处理:
dir *.lib /b > file_name.txt
然后打开file_name.txt
opencv_calib3d2410.libopencv_calib3d2410d.libopencv_contrib2410.libopencv_contrib2410d.libopencv_core2410.libopencv_core2410d.libopencv_features2d2410.libopencv_features2d2410d.libopencv_flann2410.libopencv_flann2410d.libopencv_gpu2410.libopencv_gpu2410d.libopencv_highgui2410.libopencv_highgui2410d.libopencv_imgproc2410.libopencv_imgproc2410d.libopencv_legacy2410.libopencv_legacy2410d.libopencv_ml2410.libopencv_ml2410d.libopencv_nonfree2410.libopencv_nonfree2410d.libopencv_objdetect2410.libopencv_objdetect2410d.libopencv_ocl2410.libopencv_ocl2410d.libopencv_photo2410.libopencv_photo2410d.libopencv_stitching2410.libopencv_stitching2410d.libopencv_superres2410.libopencv_superres2410d.libopencv_ts2410.libopencv_ts2410d.libopencv_video2410.libopencv_video2410d.libopencv_videostab2410.libopencv_videostab2410d.lib
提取出来lib文件末尾是d(debug)的。
测试代码:
#include <opencv2\opencv.hpp>#include <iostream>#include <string>using namespace cv;using namespace std;int main(){ Mat img = imread("123.jpg"); if(img.empty()) { cout<<"error"; return -1; } imshow("eye",img); waitKey(); return 0;}
win7 x64+vs2010 x64debug+openCV2.4.10
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。