ocrd_cis/ocropy/common.py
def array2pil(array):
    """Convert floating point grayscale array to an image.

    Given a grayscale Numpy array
    (with 1.0 for white and 0.0 for black),
    convert to a (grayscale) PIL.Image instance.
    """
    assert isinstance(array, np.ndarray), "not a numpy array"
    array = np.array(255.0 * array, np.uint8)
    return ocrolib.array2pil(array)
Convert floating point grayscale array to an image.

    Given a grayscale Numpy array
    (with 1.0 for white and 0.0 for black),
    convert to a (grayscale) PIL.Image instance.
    
Convert floating point grayscale array to an image.
Given a grayscale Numpy array
(with 1.0 for white and 0.0 for black),
convert to a (grayscale) PIL.Image instance.
Convert floating point grayscale array to an image . Given a grayscale Numpy array ( with 1 . 0 for white and 0 . 0 for black ) convert to a ( grayscale ) PIL . Image instance .
def array2pil(array):
    assert isinstance(array, np.ndarray), "not a numpy array"
    array = np.array(255.0 * array, np.uint8)
    return ocrolib.array2pil(array)
def array2pil ( array ) : assert isinstance ( array , np . ndarray ) , "not a numpy array" array = np . array ( 255.0 * array , np . uint8 ) return ocrolib . array2pil ( array )
Convert floating point grayscale array to an image.
Convert floating point grayscale array to an image .
"""Convert floating point grayscale array to an image.

    Given a grayscale Numpy array
    (with 1.0 for white and 0.0 for black),
    convert to a (grayscale) PIL.Image instance.
    """
array