python for all images in directory do something with image 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