标签:div clu turn space pack int 添加 shared 3.0
问题:
OpenCV Error: Assertion failed (size.width>0 && size.height>0) in cv::imshow, file C:\builds\master_PackSlave-win32-vc12-shared\opencv\modules\highgui\src\window.cpp, line 271
造成问题的原因是:
#include<opencv2\opencv.hpp> using namespace cv; int main() { Mat picture =imread("E:\1.jpg");//图片必须添加到工程目录下 imshow("测试程序", picture); waitKey(20150901); return 0; }
中将Mat picture = imread("E:\\1.jpg"); 即可!
标签:div clu turn space pack int 添加 shared 3.0
原文地址:https://www.cnblogs.com/GuanghuiLiu/p/8960711.html