浏览代码

修改二维码检测函数,去除边框标记

liyan 11 月之前
父节点
当前提交
81ef8dc8fa
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      watermark_verify/tools/qrcode_tool.py

+ 2 - 2
watermark_verify/tools/qrcode_tool.py

@@ -18,8 +18,8 @@ def detect_and_decode_qr_code(img_path):
         # Convert to integer type
         # Convert to integer type
         points = points[0].astype(int)
         points = points[0].astype(int)
         # Draw the bounding box on the image (optional)
         # Draw the bounding box on the image (optional)
-        for i in range(len(points)):
-            cv2.line(image, tuple(points[i]), tuple(points[(i + 1) % len(points)]), (255, 0, 0), 2)
+        # for i in range(len(points)):
+        #     cv2.line(image, tuple(points[i]), tuple(points[(i + 1) % len(points)]), (255, 0, 0), 2)
         return decoded_text, points
         return decoded_text, points
     else:
     else:
         return None, None
         return None, None