加载图片代码为:#include<iostream> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp>using namespace cv;int main() {Mat img = imread("pic.jpg");namedWindow("游戏原画");imshow("游戏原画", img);waitKey(6000);return 0; }本人项目目录如下: 问题: 运行时出现 解决方案: 1.将项目中图片取出,放于D盘根目录 2.将代码Mat img = imread("pic.jpg");改为Mat img = imread("D:\\pic.jpg");再...