Start the journey of OpenCV

starter template

#include<opencv2/opencv.hpp>
#include<iostream>

using namespace cv;
using namespace std;

int main(int argc,char** argv)
{
    
    
    Mat cat = imread("C:/Users/86182/Pictures/Saved Pictures/cat.jpg"); //载入图像到Mat
    namedWindow("【1】动物图", WINDOW_FREERATIO);
    imshow("【1】动物图", cat);//显示名为 "【1】动物图"的窗口  
    waitKey(0);
    destroyAllWindows();
    return 0;
}

Guess you like

Origin blog.csdn.net/qq_46248455/article/details/120979004