@@ -2,4 +2,3 @@ from .blind_watermark import WaterMark
from .bwm_core import WaterMarkCore
from .att import *
from .recover import recover_crop
-from .version import __version__, bw_notes
@@ -1,19 +1,11 @@
-#!/usr/bin/env python3
-# coding=utf-8
-# @Time : 2020/8/13
-# @Author : github.com/guofei9987
-import warnings
-
import numpy as np
import cv2
-from .version import bw_notes
class WaterMark:
def __init__(self, password_wm=1, password_img=1, block_shape=(4, 4), mode='common', processes=None):
- bw_notes.print_notes()
self.bwm_core = WaterMarkCore(password_img=password_img, mode=mode, processes=processes)
@@ -1,7 +1,3 @@
-# @Time : 2021/12/17
from numpy.linalg import svd
import copy
@@ -1,22 +0,0 @@
-__version__ = '0.4.4'
-class Notes:
- def __init__(self):
- self.show = True
- def print_notes(self):
- if self.show:
- print(f'''
-Welcome to use blind-watermark, version = {__version__}
-Make sure the version is the same when encode and decode
-Your star means a lot: https://github.com/guofei9987/blind_watermark
-This message only show once. To close it: `blind_watermark.bw_notes.close()`
- ''')
- self.close()
- def close(self):
- self.show = False
-bw_notes = Notes()