cv2 与 matplotlib 的 Bug

cv2 的 imread 无法读取中文路径

解决方案:

img = cv2.imdecode(np.fromfile(image_path,dtype=np.uint8),cv2.IMREAD_COLOR) # 解决无法取得中文路径问题

matplotlib 的 imread 无法读取 .png 格式图片

解决方案,暂无。

猜你喜欢

转载自www.cnblogs.com/q735613050/p/10017898.html