Ask Your Question

yuyue62's profile - activity

2020-03-27 21:20:22 -0600 received badge  Famous Question (source)
2019-10-01 03:34:28 -0600 received badge  Notable Question (source)
2019-04-08 10:00:11 -0600 received badge  Popular Question (source)
2016-02-02 03:00:18 -0600 commented question OpenCV Error: Assertion failed

Thanks a lot. I check my libs and found the problem!

2016-02-02 02:32:59 -0600 asked a question OpenCV Error: Assertion failed

OpenCV Error: Assertion failed (size.width>0 && size.height>0) in cv::imshow, fi le D:\opencv\sources\modules\highgui\src\window.cpp, line 269

The code is:

image description

But I also tried cv::Mat patternImage = cv::imread("F:\opencv - Copy (2)\Pattern.jpg"); and cv::Mat patternImage = cv::imread("F:/opencv - Copy (2)/Pattern.jpg");

But the error is always the same.

In another computer I use vs2010 and opencv 2.32 this error does not exsit. But in this computer I use vs2013 and opencv 2.49 with opengl. I meet this error. Can anybody help me please. Thanks a lot.

Add: strange thing is the same code can run if I create another project, but when it added to my current project, it doesn't work.