int main()
{
cv::Mat image;
image=cv::imread("D:\community\QT\untitled8\123.PNG");
if(image.empty())
return 0;
qDebug() << "Supported formats:" << QImageReader::supportedImageFormats();
std::cout<<image;
imshow("show",image);
cv::imshow("image show",image);
cv::namedWindow("image show");
cv::waitKey();
return 0;
}
![图片说明](https://img-ask.csdn.net/upload/202010/12/1602489335_111587.png)