Skip to content

Instantly share code, notes, and snippets.

@TurpIF
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TurpIF/67b955a7c4cd1826e758 to your computer and use it in GitHub Desktop.
Save TurpIF/67b955a7c4cd1826e758 to your computer and use it in GitHub Desktop.
from PIL import Image
import numpy as np
def image2array(filname):
return np.array(Image.open(filename))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment