欢迎来到天天文库
浏览记录
ID:48886583
大小:18.94 KB
页数:4页
时间:2020-02-04
《在QtCreator中使用Opencv2.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、.专业.专注.在QtCreator中使用Opencv2.3分类: 数字图像处理 Qt2012-04-1817:21 104人阅读 评论(0) 收藏 举报打开Qt项目中的.pro文件,添加如下代码INCLUDEPATH+=D:OpenCVopencvbuildincludeopencv2D:OpenCVopencvbuildincludeopencvD:OpenCVopencvbuildincludeCONFIG(release,debug
2、release){LIBS+=D:OpenCVopencvbuildx86vc10
3、libopencv_calib3d231.libD:OpenCVopencvbuildx86vc10libopencv_contrib231.libD:OpenCVopencvbuildx86vc10libopencv_core231.libD:OpenCVopencvbuildx86vc10libopencv_features2d231.libD:OpenCVopencvbuildx86vc10libopencv_flann231.libD:OpenCVopencvbuildx86
4、vc10libopencv_gpu231.libD:OpenCVopencvbuildx86vc10libopencv_highgui231.libD:OpenCVopencvbuildx86vc10libopencv_imgproc231.libD:OpenCVopencvbuildx86vc10libopencv_legacy231.libD:OpenCVopencvbuildx86vc10libopencv_ml231.libD:OpenCVopencvbuildx86vc10
5、libopencv_objdetect231.libD:OpenCVopencvbuildx86vc10libopencv_ts231.libD:OpenCVopencvbuildx86vc10libopencv_video231.lib.word可编辑..专业.专注.}CONFIG(debug,debug
6、release){LIBS+=D:OpenCVopencvbuildx86vc10libopencv_calib3d231d.libD:OpenCVopencvbuildx86vc10libo
7、pencv_contrib231d.libD:OpenCVopencvbuildx86vc10libopencv_core231d.libD:OpenCVopencvbuildx86vc10libopencv_features2d231d.libD:OpenCVopencvbuildx86vc10libopencv_flann231d.libD:OpenCVopencvbuildx86vc10libopencv_gpu231d.libD:OpenCVopencvbuildx86vc10
8、libopencv_highgui231d.libD:OpenCVopencvbuildx86vc10libopencv_imgproc231d.libD:OpenCVopencvbuildx86vc10libopencv_legacy231d.libD:OpenCVopencvbuildx86vc10libopencv_ml231d.libD:OpenCVopencvbuildx86vc10libopencv_objdetect231d.libD:OpenCVopencvbuildx8
9、6vc10libopencv_ts231d.libD:OpenCVopencvbuildx86vc10libopencv_video231d.lib}注意,你的代码中的路径要根据OpenCV的具体安装路径做改变。测试程序#include#include.word可编辑..专业.专注.usingnamespacestd;usingnamespacecv;intmain(intargc,char*argv[]){QCoreApplicationa(argc,argv);c
10、onstchar*ima
此文档下载收益归作者所有