Assertion failed (size.width>0 && size.height>0)
I tried your code and for me it works (it visualizes the current webcam input)! I ran it on Visual Studio 2012 Ultimate with OpenCV 2.4.7. … The error occurs because the image is empty, so try this: while (true) { cap >> image; if(!image.empty()){ imshow(“window”, image); } // delay 33ms waitKey(33); } Maybe the … Read more