1 #include <opencv2/opencv.hpp> 2 #include <opencv2/dnn.hpp>//dnn模块类 3 #include <iostream> 4 5 using namespace cv; 6 using namespace std; 7 8 int main(int argc, char** argv) { 9 Mat src = imread("tx.png"); 10 if (src.empty()) { 11 printf("could not load image...\n"); 12 return -1; 13 } 14 namedWindow("input image", CV_WINDOW_AUTOSIZE); 15 imshow("input image", src); 16 17 waitKey(0); 18 return 0; 19 }标签:src,int,image,DNN,PNG,模块,OpenCV3.3,include,opencv3.3 From: https://www.cnblogs.com/ybqjymy/p/17639479.html