Ver Fonte

去除无关打印信息

liyan há 1 ano atrás
pai
commit
c06ec9697b
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      watermark_generate/blind_watermark/blind_watermark.py

+ 1 - 1
watermark_generate/blind_watermark/blind_watermark.py

@@ -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