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’

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
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! = 5 wzgtzow
“universal cloud computing” cloud host as low as 4 = 5 wzgtzow
cloud communication exclusive ali cloud new users 】 【 8 fold the =5wzgtzow
[trademark registration service] as low as 680

Read More: