Install OpenCV:OpenCV 3.0、OpenCV 2.4.8、OpenCV 2.4.9 +VS development configuration


本系列文章由@浅墨_毛星云 出品,转载请注明出处。  

文章链接: http://blog.csdn.net/poem_qianmo/article/details/19809337


作者:毛星云(浅墨)    微博:http://weibo.com/u/1723155442

邮箱: happylifemxy@163.com

知乎:http://www.zhihu.com/people/mao-xing-yun

写作当前博文时配套使用的OpenCV版本: 2.4.8、2.4.9、3.0



opencv 3

包含目录

F:\opencv\opencv3\opencv\build\include

F:\opencv\opencv3\opencv\build\include\opencv

F:\opencv\opencv3\opencv\build\include\opencv2

库目录

F:\opencv\opencv3\opencv\build\x86\vc12\lib

F:\opencv\opencv3\opencv\build\x86\vc12\staticlib

链接器

输入

opencv_ts300.lib;opencv_world300.lib


Opencv 2

包含目录

F:\opencv\opencv\build\include

F:\opencv\opencv\build\include\opencv

F:\opencv\opencv\build\include\opencv2

库目录

F:\opencv\opencv\build\x86\vc10\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

opencv_objdetect249.lib

opencv_ts249.lib

opencv_video249.lib

opencv_nonfree249.lib

opencv_ocl249.lib

opencv_photo249.lib

opencv_stitching249.lib

opencv_superres249.lib

opencv_videostab249.lib

opencv_calib3d249.lib

opencv_contrib249.lib

opencv_core249.lib

opencv_features2d249.lib

opencv_flann249.lib

opencv_gpu249.lib

opencv_highgui249.lib

opencv_imgproc249.lib

opencv_legacy249.lib

opencv_ml249.lib


#include "opencv2/opencv.hpp"

#include<iostream>


using namespace cv;

using namespace std;


int main(){

Mat img;

img=imread("src.bmp");

imshow("show",img);

//imwrite("imgthres.jpg",img);

waitKey(0);

return 0;

}


Last Article Next article

Comment 评论



Share 分享

New Users 最新加入

  • Cheng Dan

  • 13111111111

  • ぴ夏末ζ烟雨﹌

New comments 最新评论

test123: aasdas Details 04月13日 16:39
admin: Thanks! Details 04月09日 11:46
admin: Google map api Details 04月09日 11:46
lqj12: cooooooooool Details 04月08日 21:34
Yunhan Huang: 这个功能是如何实现的? Details 04月08日 13:23