Args:
        - image: support many type. filepath or url or data:image/png:base64
    Return:
        Pattern
    Raises
        IOError

def open(image):
    '''
    Args:
        - image: support many type. filepath or url or data:image/png:base64
    Return:
        Pattern
    Raises
        IOError
    '''
    if isinstance(image, six.string_types):
        name = image
        if name.startswith('data:image/'):
            return _open_data_url(name)
        if re.match(r'^https?://', name):
            return url_to_image(name)
        if os.path.isfile(name):
            img = cv2.imread(name)
            if img is None:
                raise IOError("Image format error: %s" % name)
            return img
        raise IOError("Open image(%s) not found" % name)

    return image