Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ASAmbitious opened this issue Dec 20, 2023 · 4 comments

Comments

@ASAmbitious
Copy link

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
Copy link

GiantKs commented Dec 21, 2023

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

@ifkid
Copy link

ifkid commented Feb 20, 2024

same problem

@ifkid
Copy link

ifkid commented Feb 20, 2024

same problem

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

@shixiaofeia
Copy link

同样的问题

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants