From 9fda3f7316f104f9288f3c1ee5671667951e7519 Mon Sep 17 00:00:00 2001
From: wangzhibo <wangzhibo@shsening.com>
Date: 星期五, 25 三月 2022 15:49:33 +0800
Subject: [PATCH] 识别宽的情况 人工拆分

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

diff --git a/debug/1_check_frame_boundary.py b/debug/1_check_frame_boundary.py
index 1fdfd8a..b958d23 100644
--- a/debug/1_check_frame_boundary.py
+++ b/debug/1_check_frame_boundary.py
@@ -12,7 +12,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, (5, 5))
+    kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (6, 6))
     counter = cv2.morphologyEx(thresh.copy(), cv2.MORPH_OPEN, kernel)
     contours, hierarchy = cv2.findContours(counter,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
     contours_count = 0

--
Gitblit v1.9.1