Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
guofei9987 authored Dec 15, 2023
2 parents e3da06b + 0919ac5 commit 1599f4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example/example_echo_watermark.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
from hide_info.echo_watermark import EchoWatermark, get_error_rate, get_snr
from hide_info import utils


ori_file = "sounds.wav" # 载体
embedded_file = "sounds_with_watermark.wav" # 嵌入水印后的文件名
wm_str = "回声水印算法,欢迎 star!" # 水印


wm_bits = utils.bytes2bin(wm_str.encode('utf-8'))
len_wm_bits = len(wm_bits)

Expand Down

0 comments on commit 1599f4b

Please sign in to comment.