image_paths

image_paths(img_dir, image_types=('jpg', 'png', 'bmp'))[source]

Selects all images given in the image_types list from a directory

Parameters
img_dir: str

path to the directory which includes the images

image_types: list

a list of strings of the image types to select

Returns
image_paths: list