OpenCV之QT版本的圖像顯示

OpenCV之QT版本的圖像顯示

1.QT配置

INCLUDEPATH += XXX\\install\\x64\\mingw\\bin \
              XXX\\install\\include\\opencv2 \
               XXX\\install\\include
CONFIG(debug, debug|release): {
LIBS += XXX\\install\\x64\\mingw\\lib\\libopencv_*.a

} else:CONFIG(release, debug|release): {

LIBS += XXX\install\\x64\\mingw\lib\\libopencv_*.a

}

2.頭文件包含

#include<opencv2/core/core.hpp>
#include<opencv2/highgui/highgui.hpp>
#include<opencv2/imgproc/imgproc.hpp>

3.圖像顯示

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章