Reputation: 25
Please,
I'm trying to display the filename of a jpeg but i could not find how to. I want to display the image + the filename of the image.
img_dir = "paintings/"
data_path = os.path.join(img_dir,'*g')
files = glob.glob(data_path)
data = []
for f1 in files:
img = imageio.imread(f1)
data.append(img)
plt.imshow(data[40])
Thanks
Upvotes: 0
Views: 838