Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

img_to_array

Converts a PIL Image instance to a Numpy array.


Description

Converts a PIL Image instance to a Numpy array.

Usage

img_to_array(img, data_format = NULL)

Arguments

img

PIL image file; usually loaded with load_img

data_format

either "channels_first" or "channels_last".

Value

A 3D numeric array.

Author(s)

Taylor B. Arnold, taylor.arnold@acm.org

References

See Also

Other image: load_img


kerasR

R Interface to the Keras Deep Learning Library

v0.6.1
LGPL-2
Authors
Taylor Arnold [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.