Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

load and image and predict tensorflow

from PIL import Image
img = Image.open("image_file_path").convert('L').resize((28, 28), Image.ANTIALIAS)
img = np.array(img)
model.predict(img[None,:,:])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #load #image #predict #tensorflow
ADD COMMENT
Topic
Name
4+1 =