cv读图的bug
最近开发的项目上用的方法,可以屏蔽中文的差异,项目上用的是PIL.image的格式
rgb_np = cv2.cvtColor(cv2.imdecode(np.fromfile(img_path, dtype=np.uint8), -1), cv2.COLOR_BGR2RGB)
data = Image.fromarray(rgb_np) # ,
data = data.convert('RGB')# 统一转为3通道
传统方法
data = Image.fromarray(cv2.cvtColo.
原创
2020-07-02 09:45:35 ·
2253 阅读 ·
0 评论