python opencv read image with with Chinese character

example

import cv2
import numpy as np

ff = "D:\\数据dog.jpg"
img = cv2.imdecode(np.fromfile(file=ff, dtype=np.uint8), -1)
print(img.shape)

posted on 2024-12-11 16:32  yusisc  阅读(7)  评论(0编辑  收藏  举报

导航