cv2.imread() error: (-215:Assertion failed) size.width>0 && size.height>0 in function ‘cv::imshow’

error: (-215:Assertion failed) size.width> 0 & & size.height> 0 in function ‘CV ::imshow’

Solution:
change the name and path of the picture to English or number

window name should also be set to English or number, otherwise it will show the code
from the code of https://www.zhihu.com/question/67157462/answer/251754530
Chinese path can be read normal, but still have window name Chinese garbled.

update: fix window name mess
change system Settings, check the system default code under the CMD window to enter CHCP. If the system encoding is UTF-8, output 65001, modify the language setting to UTF-8, and operate as follows:

red envelope + discount, ali cloud on cloud gift package!
https://promotion.aliyun.com/ntms/yunparter/invite.html?UserCode = 5 wzgtzow
“universal cloud computing” cloud host as low as 4
https://promotion.aliyun.com/ntms/act/qwbk.html?UserCode = 5 wzgtzow
cloud communication exclusive ali cloud new users 】 【 8 fold the
https://www.aliyun.com/acts/alicomcloud/new-discount?UserCode =5wzgtzow
[trademark registration service] as low as 680
https://tm.aliyun.com/?userCode=5wzgtzow


Read More: