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)