Explorar o código

去除无关打印信息

liyan hai 1 ano
pai
achega
c06ec9697b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
         elif mode == 'str':
             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')
 
         return wm