Created
July 2, 2017 20:31
-
-
Save techedlaksh/77b09e7f79a54e655ff1a6e01bef2776 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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