代码:
#include <QCoreApplication>
#include <opencv2/core/core.hpp>
#include "opencv2/objdetect/objdetect.hpp"
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include "highgui.h"
#include <iostream>
using namespace cv;
using namespace std;
int main()
{
Mat mat=imread("D:\\image\\ppg.jpg");
imshow("myImg",mat);
return (0);
}
结果:
只有黑白框,没有图片显示
求解怎么处理?