运行报错为:
terminate called after throwing an instance of ‘cv::Exception’
what(): OpenCV(3.4.10) /home/ab/opencv/modules/highgui/src/window.cpp:382: error: (-215:Assertion failed) size.width>0 && size.height>0 in function ‘imshow’
已放弃 (核心已转储)
解决方法1:将所用到的内容改为绝对路径(推荐)
比如(/home/ab/cpp/picture.png)
解决方法2:将所用到的内容改为相对路径
比如(…/…/cpp/picture.png)