MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / imread

Function imread

unsupervised_class3/util.py:20–22  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

18except:
19 from PIL import Image
20 def imread(fn):
21 im = Image.open(fn)
22 return np.array(im)
23
24 def imsave(fn, arr):
25 im = Image.fromarray(arr)

Callers 3

crop_and_resaveFunction · 0.85
files2images_theanoFunction · 0.85
files2imagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected