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

load_img

Load image from a file as PIL object


Description

Load image from a file as PIL object

Usage

load_img(path, grayscale = FALSE, target_size = NULL)

Arguments

path

Path to image file

grayscale

Boolean, whether to load the image as grayscale.

target_size

If NULL, the default, loads the image in its native resolution. Otherwise, set this to a vector giving desired (img_height, img_width).

Author(s)

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

References

See Also

Other image: img_to_array


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.