python關於opencv提取圖片路徑不能用中文的解決辦法

代碼: import cv2 import numpy as np def cv_imread(file_path): cv_img = cv2.imdecode(np.fromfile(file_path,dtype=np.uint8),-1) return cv_img cv2.imshow(「img」,cv_imread(‘D:/畢設/tupian/chepai.jpg’)) #保持圖片顯示
相關文章
相關標籤/搜索