Skip to content

Instantly share code, notes, and snippets.

@akkefa
Created April 21, 2017 15:52
Show Gist options
  • Save akkefa/6e1bc1fa94c2e28b4c92cfdfb5cf9926 to your computer and use it in GitHub Desktop.
Save akkefa/6e1bc1fa94c2e28b4c92cfdfb5cf9926 to your computer and use it in GitHub Desktop.
from skimage import io
from skimage.color import rgb2gray
from skimage.transform import resize, rotate
arr = resize(io.imread('black.jpg'),(32,32))
arr = rgb2gray(arr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment