View source: R/preprocessing.R
img_to_array | R Documentation |
Converts a PIL Image instance to a Numpy array.
img_to_array(img, data_format = NULL)
img |
PIL image file; usually loaded with load_img |
data_format |
either "channels_first" or "channels_last". |
A 3D numeric array.
Taylor B. Arnold, taylor.arnold@acm.org
Chollet, Francois. 2015. Keras: Deep Learning library for Theano and TensorFlow.
Other image: load_img
Other preprocessing: Tokenizer
,
expand_dims
, load_img
,
one_hot
, pad_sequences
,
text_to_word_sequence
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.