cv2.imread读出的结果是None 原因1: 路径有问题 原因2: 路径含有中文字符 原因3:(要是从文本文件中读取的路径名要注意) 路径末尾有换行符 ‘\n’ 去除换行符 path.repalce('\n', '') 参考: 参考链接