Skip to content

Commit

Permalink
add feature:compression_ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
guofei9987 committed Nov 14, 2022
1 parent 8f27605 commit e6512f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/example_str.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
assert wm == wm_extract, '提取水印和原水印不一致'

# %% 随机裁剪攻击 = 随机位置裁剪 + 不知道攻击参数
loc_r = ((0.1, 0.1), (0.4, 0.8))
loc_r = ((0.1, 0.1), (0.5, 0.4))

_, (x1, y1, x2, y2) = att.cut_att2(input_filename='output/embedded.png', output_file_name='output/随机裁剪攻击.png',
loc_r=loc_r, scale=None)
Expand Down
Binary file removed examples/output/embedded.png
Binary file not shown.

0 comments on commit e6512f2

Please sign in to comment.