摘要: python中用的 是utf-8编码,而opencv用的是gbk,要用numpy先读一下,另外写文件也是一个道理。 def cv_imread(file_path = ""): img_mat=cv2.imdecode(np.fromfile(file_path,dtype=np.uint8),-1 阅读全文
posted @ 2020-01-21 13:23 you-wh 阅读(1102) 评论(0) 推荐(0) 编辑
Fork me on GitHub