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

Function load_img

cnn_class2/siamese.py:30–33  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

28
29
30def load_img(filepath):
31 # load image and downsample
32 img = image.img_to_array(image.load_img(filepath, target_size=[60, 80])).astype('uint8')
33 return img
34
35
36

Callers 1

siamese.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected