def load_image(filename, flags=None):
    '\n    This will call cv2.imread() with the given arguments and convert\n    the resulting numpy array to a darknet image\n\n    :param filename: Image file name\n    :param flags: imread flags\n    :return: Given image file as a darknet image\n    :rtype: IMAGE\n    '
    image = cv2.imread(filename, flags)
    return array_to_image(image)
This will call cv2.imread() with the given arguments and convert
the resulting numpy array to a darknet image

:param filename: Image file name
:param flags: imread flags
:return: Given image file as a darknet image
:rtype: IMAGE
def load_image(filename, flags=None):
    '\n    This will call cv2.imread() with the given arguments and convert\n    the resulting numpy array to a darknet image\n\n    :param filename: Image file name\n    :param flags: imread flags\n    :return: Given image file as a darknet image\n    :rtype: IMAGE\n    '
    image = cv2.imread(filename, flags)
    return array_to_image(image)