BlindWatermark

使用盲水印保护创作者的知识产权using invisible watermark to protect creator's intellectual property

GPL-3.0 License

Stars
1.3K

xx

,,python

**

** ****ps,

todo list

  • pypi , ,
  • (0/n)
    • QIM,,
  • pyqtGUI
  • ,,,,,
    • from BlindWatermark import recovery

d1,(m,m)(4,4),x * y ,wm_size

, ****

  • , , (). , , . , ,
    • : , , , ,
    • P, , B. ,
  • ? , , ? ,, ,?
  • , ,, , , thank you my friends

  • :

  • :

  • :

    • , B,
    • <= /2/4 /2/4 ,
  • :

    • python3
    • numpy
    • opencv
    • PyWavelets

B

** B,, star

git pull https://github.com/fire-keeper/BlindWatermark.git,


#
python bwm.py -k 4399 2333 32 -em -r pic/lena_grey.png -wm pic/wm.png -o out.png -s
#
python bwm.py -k 4399 2333 32 -ex -r out.png -wm pic/wm.png -ws 64 64 -o out_wm.png -s
"--key",'-k' 2(),,.(4399,2333,32)
'-em','--embed' ,
'-ex','--extract' ,
               
"--read",'-r'   ""
"--read_wm",'-wm'  
"--wm_shape",'-ws' 
"--out_put",'-o'   
"--show_ncc",'-s'  NC()

'-bs','--block_shape' ,,,,8,,,,
'-d','--dwt_deep',,,,1,2,3

,--key3(4),

python

# python
#
from BlindWatermark import watermark
#

bwm1 = watermark(4399,2333,36,20)
#43992333,3620,,,,,
#, 
#,,
bwm1.read_ori_img("pic/lena_grey.png")
#
bwm1.read_wm("pic/wm.png")
#
bwm1.embed('out.png')
#'out.png'
# NCC
from BlindWatermark import test_ncc
   
test_ncc('pic/lena_grey.png','out.png')
#, 0~1,1
#

bwm1 = watermark(4399,2333,36,20,wm_shape=(64,64))
#,,
bwm1.extract("out.png","out_wm.png")   
# Y_U_V/ , 

lena_grey.png``wm.png

blur_lena.png blur_wm.png
cover_lena.png
randline_lena.png
10% brighter10_lena.png
10% darker10_lena.png
saltnoise_lena.png
5%
10%
30%

jpeg, Y,Y

90
85
80
70
60
50
40

, (), ,

A,B. A, BA. ()A,B, ,A,,B

,

A
B
B
A