cv2 与 matplotlib 的 Bug

Posted q735613050

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了cv2 与 matplotlib 的 Bug相关的知识,希望对你有一定的参考价值。

cv2 的 imread 无法读取中文路径

解决方案:

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

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

解决方案,暂无。

以上是关于cv2 与 matplotlib 的 Bug的主要内容,如果未能解决你的问题,请参考以下文章