#include <iostream>
#include <opencv2/opencv.hpp>
using namespace cv;
using namespace std;
int main()
{
cv::Mat img = imread("./90#_374.jpg");
cout << img.rows << ", " << img.cols << ", " << img.channels() << endl;
cv::imshow("img", img);
cv::waitKey(10000);
}
注意
- docker安装的ubuntu是server版,没有桌面UI,无法显示图像
- vmware如果安装的server版ubuntu,也是没有桌面UI,无法显示图像