OpenCV(3.4.1) Error: Assertion failed (size.width>0 && size.height>0) in imshow, file /home/cc/software/opencv-3.4.1/modules/highgui/src/window.cpp, line 356
terminate called after throwing an instance of ‘cv::Exception’
what(): OpenCV(3.4.1) /home/cc/software/opencv-3.4.1/modules/highgui/src/window.cpp:356: error: (-215) size.width>0 && size.height>0 in function imshow
臭狗屎坑
简而言之:
原路径
/home/camerro/1.jpg
正确路径
/home/tom/camerro/1.jpg
/home/你的用户名/camerro/1.jpg