c++ - Opencv assertion failed <size.width>0 && <size.height>0 in cv::imshow -


#include <opencv\cv.h> #include <opencv2\highgui\highgui.hpp> #include<opencv\cvaux.h> #include<opencv\cxcore.h> #include <opencv2\imgproc.hpp> #include <iostream> #include<conio.h>     using namespace cv; using namespace std;  void main()  {  mat src = imread("greyscale.jpg"); \\image edited imshow("input", src); mat dest; \\processed image threshold(src, dest, 100, 255, thresh_binary); imshow("result", dest); waitkey(); } 

the above code when executed on visual studio 2013 express (configured opencv 3.0) not show compiling errors. output window displays error

opencv error: assertion failed (size.width>0 && size.height>0) in cv::imshow, fi le c:\builds\master_packslave-win64-vc12-shared\opencv\modules\highgui\src\windo w.cpp, line 271 press key continue . . . , window pops saying open cv has crashed.

i'm new opencv , appreciated.thanks in advance! i have gone through similar problems theirs dude webcam feed being null initially..all im doing here scanning image


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -