赞
踩
用img = cv2.imdecode(np.fromfile(a[:-1],dtype=np.uint8),cv2.IMREAD_COLOR)
代替img = cv2.imread(a[:-1])就好了