[docs]defset_image_backend(backend):""" Specifies the package used to load images. Args: backend (string): Name of the image backend. one of {'PIL', 'accimage'}. The :mod:`accimage` package uses the Intel IPP library. It is generally faster than PIL, but does not support as many operations. """global_image_backendifbackendnotin['PIL','accimage']:raiseValueError("Invalid backend '{}'. Options are 'PIL' and 'accimage'".format(backend))_image_backend=backend
[docs]defget_image_backend():""" Gets the name of the package used to load images """return_image_backend