blind-watermark
blind-watermark copied to clipboard
Watermark added to the frequency domain by Fourier transform
Only 5 lines of code ([`remove.py`](https://github.com/warm-ice0x00/blind-watermark/blob/python3/remove.py)) can remove the watermark without sacrificing image quality.
**This program will throw the following error** ``` File "encode.py", line 39, in encode x, y = range( height / 2 ), range(width) TypeError: 'float' object cannot be interpreted as...
![image](https://user-images.githubusercontent.com/49173457/92469345-44bab100-f207-11ea-90e0-7c7b69c9ae9b.png) ![image](https://user-images.githubusercontent.com/49173457/92469453-69af2400-f207-11ea-99d7-31dcf7036ca5.png)
Traceback (most recent call last): File "C:/Users", line 54, in main() File "C:/Users", line 22, in main img = options.img AttributeError: 'Namespace' object has no attribute 'img'
encode后输出图片正常(无法确定是否成功添加盲水印) decode后输出水印异常(水印图片全黑) 图片是`6000*4000`,缩小至`600*400`后没有问题。 没测试master分支
谁来帮帮!!! ![cctv](https://github.com/linyacool/blind-watermark/assets/62062283/2f2b3297-a398-490e-a148-bc3d2cb690cf)