read images from a folder python pillow code example
Example: python get all images in directory
import glob
for filename in glob.iglob(root_dir + '**/*.jpg', recursive=True):
# Do something
import glob
for filename in glob.iglob(root_dir + '**/*.jpg', recursive=True):
# Do something