OpenCV-test

OpenCV 的 Hello World?

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

using namespace std;
using namespace cv;
int main()
{
    Mat src=imread("/home/joyce/图片/t34-85.jpg");
    imshow("1",src);
    int key=waitKey(0);
    if(char(key)==27)
    {
        return 0;
    }
}

发表回复 0

Your email address will not be published. Required fields are marked *