path="/根目录/test.jpg"
将
img=cv2.imread(path,cv2.IMREAD_UNCHANGED)
改成:
img=cv2.imdecode(np.fromfile(path,dtype=np.uint8),cv2.IMREAD_UNCHANGED)
path="/根目录/test.jpg"
将
img=cv2.imread(path,cv2.IMREAD_UNCHANGED)
改成:
img=cv2.imdecode(np.fromfile(path,dtype=np.uint8),cv2.IMREAD_UNCHANGED)
本文标题:opencv2 在windows下无法读取中文路径的解决办法
本文链接:https://www.haomeiwen.com/subject/exhsvctx.html
网友评论