W3cubDocs

/TensorFlow Python

Module: tf.keras.preprocessing.image

Defined in tensorflow/tools/api/generator/api/keras/preprocessing/image/__init__.py.

Imports for Python API.

This file is MACHINE GENERATED! Do not edit. Generated by: tensorflow/tools/api/generator/create_python_api.py script.

Classes

class DirectoryIterator: Iterator capable of reading images from a directory on disk.

class ImageDataGenerator: Generate minibatches of image data with real-time data augmentation.

class Iterator: Base class for image data iterators.

class NumpyArrayIterator: Iterator yielding data from a Numpy array.

Functions

apply_transform(...): Apply the image transformation specified by a matrix.

array_to_img(...): Converts a 3D Numpy array to a PIL Image instance.

flip_axis(...)

img_to_array(...): Converts a PIL Image instance to a Numpy array.

load_img(...): Loads an image into PIL format.

random_brightness(...): Performs a random adjustment of brightness of a Numpy image tensor.

random_channel_shift(...)

random_rotation(...): Performs a random rotation of a Numpy image tensor.

random_shear(...): Performs a random spatial shear of a Numpy image tensor.

random_shift(...): Performs a random spatial shift of a Numpy image tensor.

random_zoom(...): Performs a random spatial zoom of a Numpy image tensor.

Other Members

__cached__

__loader__

__spec__

© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/image