python2 安装 BlindWaterMark 盲水印工具
下载工具 git clone https://github.com/chishaxie/BlindWaterMark
解压
安装环境
pip install opencv_python
pip install matplotlib==2.0.2 //感觉只有这版完全兼容的
apt-get install python-tk
python '/root/桌面/BlindWaterMark-master/bwm.py' encode '/root/桌 面/BlindWaterMark-master/hui.png'
'/root/桌面/BlindWaterMark-master/wm.png' '/root/桌面/BlindWaterMark-master/hui_with_wm.png'
//可以使用
使用方法
合成盲水印图
python bwm.py encode hui.png wm.png hui_with_wm.png
python bwm.py decode hui.png hui_with_wm.png wm_from_hui.png
来源官网
Usage: python bwm.py <cmd> [arg...] [opts...] cmds: encode <image> <watermark> <image(encoded)> image + watermark -> image(encoded) decode <image> <image(encoded)> <watermark> image + image(encoded) -> watermark opts: --debug, Show debug --seed <int>, Manual setting random seed (default is 20160930) --alpha <float>, Manual setting alpha (default is 3.0)