[汇总]Qt Creator中使用OpenCV

目录

[汇总]Qt Creator中使用OpenCV

Using OpenCV 2.2 within QTCreator in Windows

在Qt Creator中使用OpenCV库

http://www.cnthub.com/page/M0/S222/222757.html

QT中使用OpenCV的简单方法(原创)

http://hi.baidu.com/bigheadd/blog/item/cb195401ab0d0909728da521.html

在Qt中使用OpenCV库

http://www.opencv.org.cn/index.php/在Qt中使用OpenCV库

若QtCreator中用MinGW调试,需要对OpenCV重新编译,方法见下文:

Compile OpenCV under MinGW

http://opencv.willowgarage.com/wiki/MinGW

————————————————————————————————————

在*.pro项目文件中加入OpenCV的include目录和lib目录:

INCLUDEPATH += D:\OpenCV2.2\include

CONFIG(release,debug|release){
LIBS += D:\OpenCV2.2\lib\opencv_core220.lib\
D:\OpenCV2.2\lib\opencv_highgui220.lib\
D:\OpenCV2.2\lib\opencv_video220.lib\
D:\OpenCV2.2\lib\opencv_ml220.lib\
D:\OpenCV2.2\lib\opencv_legacy220.lib\
D:\OpenCV2.2\lib\opencv_imgproc220.lib
}

CONFIG(debug,debug|release){
LIBS += D:\OpenCV2.2\lib\opencv_core220d.lib\
D:\OpenCV2.2\lib\opencv_highgui220d.lib\
D:\OpenCV2.2\lib\opencv_video220d.lib\
D:\OpenCV2.2\lib\opencv_ml220d.lib\
D:\OpenCV2.2\lib\opencv_legacy220d.lib\
D:\OpenCV2.2\lib\opencv_imgproc220d.lib
}