(image)
return base64.b64encode(image).decode('utf8')
cv2_to_base64

    Convert an numpy array to a base64 object.

    Args:
        image: Input array.

    Returns: Base64 output of the input.
cv2_to_base64
cv2_to_base64
def cv2_to_base64(image):
    """cv2_to_base64

    Convert an numpy array to a base64 object.

    Args:
        image: Input array.

    Returns: Base64 output of the input.
    """
    return base64.b64encode(image).decode('utf8')
def cv2_to_base64 ( image ) : return base64 . b64encode ( image ) . decode ( 'utf8' )