|
@@ -95,7 +95,7 @@ class WaterMark:
|
|
cv2.imwrite(out_wm_name, wm)
|
|
cv2.imwrite(out_wm_name, wm)
|
|
elif mode == 'str':
|
|
elif mode == 'str':
|
|
byte = ''.join(str((i >= 0.5) * 1) for i in wm)
|
|
byte = ''.join(str((i >= 0.5) * 1) for i in wm)
|
|
- print("Byte value:", byte)
|
|
|
|
|
|
+ # print("Byte value:", byte)
|
|
wm = bytes.fromhex(hex(int(byte, base=2))[2:]).decode('utf-8', errors='replace')
|
|
wm = bytes.fromhex(hex(int(byte, base=2))[2:]).decode('utf-8', errors='replace')
|
|
|
|
|
|
return wm
|
|
return wm
|