close

 

 

 

 

 

 

 

 

 

Platform: Windows 10

OpenCV: 4.2.0

Qt Creator: 4.11.0

image

image

 

image

 

image

image

 

image

 

image

 

 
#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();
}

image

INCLUDEPATH += C:\OpenCV\OpenCV4.2.0DNN\include
LIBS+= -LC:\OpenCV\OpenCV4.2.0DNN\lib \
-lopencv_world420

image

 

 

 

References:

1. OpenCV-2.4.6 with QT5.1 console project

2. Installing Qt 5.14.1

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 me1237guy 的頭像
    me1237guy

    天天向上

    me1237guy 發表在 痞客邦 留言(0) 人氣()