翻译这儿
The image fails to load (probably because you forgot the leading / in the path). imread then returns None. Passing None to imshow causes it to try to create a window of size 0x0, which fails.
The poor error handling in cv probably owes to its quite thin wrapper layer on the C++ implementation (where returning NULL on error is a common practice).
输入图片路径错误,如果是Ubuntu系统,注意是(/home/wgp/ros_ws/QR/src/zbar_python/scripts/muyun_2.png)
而不是(home/wgp/ros_ws/QR/src/zbar_python/scripts/muyun_2.png)
home前面还有个/