Closed Lun-Wang closed 3 years ago
您好,我想请问下我写的这个遍历读取文件夹中的图片为什么是一直报错的?
while True:
path='E:\\anaconda1\\date\\its' imagelist=os.listdir(path) try: for imgname in imagelist: image = Image.open(path+imgname) except: print('Open Error! Try again!') continue else: r_image = yolo.detect_image(image) r_image.show()
少了一个\号
您好,我想请问下我写的这个遍历读取文件夹中的图片为什么是一直报错的?
while True: