大佬们来帮我看看
opencv吧
全部回复
仅看楼主
level 5
AKAFerraiF50 楼主
在第一次执行的时候有这个问题,用的是VS2010 opencv2.4.9 debug模式,lib添的也是带d的
2018年03月22日 03点03分 1
level 5
AKAFerraiF50 楼主
代码如下,第一次运行:
#include<iostream>#
include#includeusingnamespacecv;intmain(){//读入一张图片(游戏原画)Matimg=imread("pic.jpg");//创建一个名为"游戏原画"窗口namedWindow("游戏原画");//在窗口中显示游戏原画imshow("游戏原画",img);//等待6000ms后窗口自动关闭waitKey(6000);}
2018年03月22日 03点03分 2
level 5
AKAFerraiF50 楼主
#include<iostream>
#include<opencv2/core/core.hpp>
#include<opencv2/highgui/highgui.hpp>
usingnamespacecv;
intmain(){//读入一张图片(游戏原画)
Matimg=imread("pic.jpg");//创建一个名为"游戏原画"窗口
namedWindow("游戏原画");
imshow("游戏画",img);
waitKey(6000);
}
2018年03月22日 03点03分 3
倒数2行少了个原字
2018年03月22日 03点03分
1