opencv(python) 读取中文路径图片

import cv2
img = cv2.imdecode(np.fromfile("微信图片.jpg",dtype=np.uint8),-1)
img = cv2.resize(img,dsize=(0, 0),fx=0.5,fy=0.5)
cv2.imshow("Img",img)
cv2.waitKey(0)

 

posted @ 2023-07-29 21:14  kuaqi  阅读(165)  评论(0编辑  收藏  举报