bubbliiiing / yolov4-keras

这是一个YoloV4-keras的源码,可以用于训练自己的模型。
MIT License
491 stars 186 forks source link

循环读取文件夹图片 #64

Closed Lun-Wang closed 3 years ago

Lun-Wang commented 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()
bubbliiiing commented 3 years ago

少了一个\号