I want to read all the image names from a directory. I am using the code given below but not getting the answer.
from PIL import Image
import glob
image_list = []
for filename in
glob.glob('D:\Rese\OneShot\OneShot\all_runs\run02\test\*.PNG'): #assuminggif
im=Image.open(filename)
image_list.append(im)
print image_list
this piece of code only returns the Empty list althought there are multiple images in the directory.