From 52ee67e88a2ad0cdd6f3c3e50129f36663bab592 Mon Sep 17 00:00:00 2001 From: "firedcto@gmail.com" Date: Thu, 1 Aug 2024 08:27:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83=E5=8F=82=E6=95=B0,=20?= =?UTF-8?q?=E4=BB=8A=E6=B1=90=E5=BC=BA=E5=8C=96E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/char/BaseChar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/char/BaseChar.py b/src/char/BaseChar.py index a5c9fe5..79897e5 100644 --- a/src/char/BaseChar.py +++ b/src/char/BaseChar.py @@ -99,7 +99,7 @@ class BaseChar: def has_cd(self, box_name): box = self.task.get_box_by_name(f'box_{box_name}') cropped = box.crop_frame(self.task.frame) - num_labels, stats, labels = get_connected_area_by_color(cropped, dot_color, connectivity=8, gray_range=20) + num_labels, stats, labels = get_connected_area_by_color(cropped, dot_color, connectivity=8, gray_range=22) big_area_count = 0 has_dot = False number_count = 0