Beispiel #1
0
def Base64ImageDeserializer(filename, streams):
    '''
    Configures the image reader that reads base64 encoded images and corresponding
    labels from a file of the form::

        [sequenceId <tab>] <numerical label (0-based class id)> <tab> <base64 encoded image>

    Similarly to the ImageDeserializer, the sequenceId prefix is optional and can be omitted.

    Args:
        filename (str): file name of the input file dataset that contains images 
         and corresponding labels

    See also:
        :cntkwiki:`Base64ImageDeserializer options <BrainScript-and-Python---Understanding-and-Extending-Readers#base64imagedeserializer-options>`
    '''
    args = _process_image_deserializer_args(filename, streams,
                                            'Base64ImageDeserializer')
    return cntk_py.base64_image_deserializer(*args)
Beispiel #2
0
def Base64ImageDeserializer(filename, streams):
    '''
    Configures the image reader that reads base64 encoded images and corresponding
    labels from a file of the form::

        [sequenceId <tab>] <numerical label (0-based class id)> <tab> <base64 encoded image>

    Similarly to the ImageDeserializer, the sequenceId prefix is optional and can be omitted.

    Args:
        filename (str): file name of the input file dataset that contains images 
         and corresponding labels

    See also:
        :cntkwiki:`Base64ImageDeserializer options <BrainScript-and-Python---Understanding-and-Extending-Readers#base64imagedeserializer-options>`
    '''
    args = _process_image_deserializer_args(filename, streams,
        'Base64ImageDeserializer')
    return cntk_py.base64_image_deserializer(*args)