close
Platform: Windows 10
OpenCV: 4.2.0
Qt Creator: 4.11.0
#include <QCoreApplication>
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace cv;
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
Mat img = imread("C:/OpenCV/images/lena.jpg");
namedWindow("image");
imshow("image", img); //imshow("image", img);
waitKey();
return a.exec();
}
INCLUDEPATH += C:\OpenCV\OpenCV4.2.0DNN\include
LIBS+= -LC:\OpenCV\OpenCV4.2.0DNN\lib \
-lopencv_world420
References:
1. OpenCV-2.4.6 with QT5.1 console project
全站熱搜
留言列表