get a list of all images in a directory python 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