Skip to content

Instantly share code, notes, and snippets.

@DZESU
Created September 5, 2019 08:26
Show Gist options
  • Select an option

  • Save DZESU/c768ba7d8116201bf38a149b97839988 to your computer and use it in GitHub Desktop.

Select an option

Save DZESU/c768ba7d8116201bf38a149b97839988 to your computer and use it in GitHub Desktop.
def load_all_image_from_path(path):
image_list = []
for filename in glob.glob(path):
# load image in gray scale
im = cv2.imread(filename, cv2.IMREAD_GRAYSCALE)
image_list.append(im)
return image_list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment