First time here? Check out the FAQ!
answered 2015-10-27 23:56:08 -0600
there is a glob in python, too:
glob
from glob import glob img_mask = 'mydir/*.jpg' img_names = glob(img_mask) for fn in img_names: print('processing %s...' % fn,) img = cv2.imread(fn, 0)