Camera testing implemented in mainwindow, but not working correctly. Can't reopen video stream without getting an error: OpenCV Error: Assertion failed (size.width>0 && size.height>0) in imshow, file /home/mseefelder/Downloads/opencv-2.4.7/modules/highgui/src/window.cpp, line 261