guofei9987 / blind_watermark

Blind&Invisible Watermark ,图片盲水印,提取水印无须原图!
https://blindwatermark.github.io/blind_watermark/#/en/
MIT License
5.75k stars 683 forks source link

Taking a screenshot of a picture with a watermark, garbled characters appear when extracting it. #130

Open ASAmbitious opened 10 months ago

ASAmbitious commented 10 months ago

I took a screenshot of the picture with the watermark embedded in it, and then saved the picture in the output folder. When decoding the watermark: --pwd Is it the same as the pwd when embedding the watermark? So what about --wm_shape? Is it the same one you used before? But I got garbled code, can anyone explain it?Is my method not feasible? `(blind_wm) su2204@PC2212037:~/code/blind_watermark$ blind_watermark --embed --pwd 789 examples/pic/panda.jpg "test" examples/output/panda_ed.png

Welcome to use blind-watermark, version = 0.4.4 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()

Embed succeed! to file examples/output/panda_ed.png Put down watermark size: 96`

`(blind_wm) su2204@PC2212037:~/code/blind_watermark$ blind_watermark --extract --pwd 789 examples/output/123.png --wm_sha pe 96

Welcome to use blind-watermark, version = 0.4.4 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()

Extract succeed! watermark is: ����⸮���@=`

GiantKs commented 10 months ago

there seems to be an issue with the PNG format input file.

ifkid commented 8 months ago

same problem

ifkid commented 8 months ago

same problem

need to set scale mode: scale=(0.5, 2), search_num=200, and it works @ASAmbitious

shixiaofeia commented 6 months ago

同样的问题

需要设置缩放模式:scale=(0.5, 2), search_num=200,就可以了@ASAmbitious 设置了缩放也不行, 我用的是png 格式, 还原图片的图片是对的, 但是解不出来值, 乱码