From 42107c75fc28284b6e4c9c5b6149886b2e5d6c67 Mon Sep 17 00:00:00 2001
From: wangzhibo <wangzhibo@shsening.com>
Date: 星期三, 23 三月 2022 15:35:49 +0800
Subject: [PATCH]  缩小模糊边界

---
 debug/2_check_frame_digits.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/debug/2_check_frame_digits.py b/debug/2_check_frame_digits.py
index 9c7a907..571110e 100644
--- a/debug/2_check_frame_digits.py
+++ b/debug/2_check_frame_digits.py
@@ -67,7 +67,7 @@
     gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
     thresh = cv2.threshold(gray, 0, 255,
                            cv2.THRESH_BINARY_INV | cv2.THRESH_OTSU)[1]
-    kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (6, 6))
+    kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (5, 5))
     counter = cv2.morphologyEx(thresh.copy(), cv2.MORPH_OPEN, kernel)
     image_h = image.shape[0]
     contours, hierarchy = cv2.findContours(counter,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)

--
Gitblit v1.9.1