读取含中文路径的图片 import numpy as np import cv2 img_cv = cv2.imdecode(np.fromfile(img_path), dtype=np.uint8), cv2.IMREAD_COLOR) 保存中文名图片 ''' 【'.jpg'】为保存的图片格式 【outpath】为图片保存的路径包含图片名 ''' import cv2 cv2.imencode('.jpg',rotated_img)[1].tofile(outpath)