名称未从test_images中显示出来。在此路径中,有四个图像???如何解决这个问题Image
paths = "C:/Users/Saad/new Conuting obj/test_images/"
import os
import glob
imagesList = listdir(path)
loaenter image description herededImages = []
for images in imagesList:
display(os.path.basename(path))
这可能有帮助
import os
paths = "C:/Users/Saad/new Conuting obj/test_images/"
imagesList = os.listdir(paths)
for images in imagesList:
print(os.path.basename(images)) # instead of basename(path)