2016-01-05 03:50:45 -0600 | received badge | ● Student (source) |
2014-11-04 06:45:12 -0600 | received badge | ● Famous Question (source) |
2014-03-08 00:58:28 -0600 | received badge | ● Notable Question (source) |
2013-12-18 03:14:48 -0600 | received badge | ● Popular Question (source) |
2013-08-04 10:20:14 -0600 | received badge | ● Scholar (source) |
2013-08-03 10:01:35 -0600 | asked a question | OpenCV Error: Assertion Failed (size.width>0 && size.height>0) in unknown function I am new to OpenCV and I followed the first example in <<opencv 2="" computer="" vision="" application="" programming="" cookbook="">> with OpenCV 2.4.6.0, below is its code: The code could be compiled successfully and could be run by clicking the executable file in debug folder. But if I press the "F5" key to debug the project, it shows me this error in command windows when the code line runs to 'cv::imshow("My Image", image);' :
Finally I found if I change to , no error exists. It seems it's a matter with the path of the image file, but I don't want to use absolute path here, could any one tell me what the wrong is with the path? Where could place the img.jpg would be right? Thanks in advance! |