Learn R Programming

keras (version 0.3.5)

image_load: Loads an image into PIL format.

Description

Loads an image into PIL format.

Usage

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

Arguments

path

Path to image file

grayscale

Boolean, whether to load the image as grayscale.

target_size

Either NULL (default to original size) or integer vector (img_height, img_width).

Value

A PIL Image instance.

See Also

Other image preprocessing: fit_image_data_generator, flow_images_from_data, flow_images_from_directory, image_to_array