Skip to content

Instantly share code, notes, and snippets.

@techedlaksh
Created July 2, 2017 20:31
Show Gist options
  • Save techedlaksh/77b09e7f79a54e655ff1a6e01bef2776 to your computer and use it in GitHub Desktop.
Save techedlaksh/77b09e7f79a54e655ff1a6e01bef2776 to your computer and use it in GitHub Desktop.
import os
import opencv as cv2
train_folder = 'path/to/Image_folder'
image_paths = [os.listdir(x[0]) for x in os.walk(train_folder)]
for a in image_paths:
resized_a = cv2.resize(a, (32, 32))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment