import cv2 f=open('错误.txt') for i in f.readlines(): sum=sum+1 if sum>924: break i=str(i).strip('\n')#去除回车。 color_img = cv2.imread(i) #print(color_img) if color_img is not None: print('yes') cv2.imshow('Gray Image',color_img) cv2.waitKey(0)
标签:存储,img,color,sum,cv2,然后,print,图片 From: https://www.cnblogs.com/hahaah/p/16923870.html