From 47d2779bcb8da1710da7f9d63113874e6089de32 Mon Sep 17 00:00:00 2001 From: guoh064 <50830808+guoh064@users.noreply.github.com> Date: Wed, 20 May 2026 22:45:04 +0800 Subject: [PATCH] Fix: story option detection pre_process (#5669) --- module/handler/info_handler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/module/handler/info_handler.py b/module/handler/info_handler.py index 89d2e9355..55b20a4ee 100644 --- a/module/handler/info_handler.py +++ b/module/handler/info_handler.py @@ -345,6 +345,7 @@ class InfoHandler(ModuleBase): story_option_color = (247, 247, 247) image = color_similarity_2d(self.image_crop(story_detect_area, copy=False), color=story_option_color) + cv2.morphologyEx(image, cv2.MORPH_CLOSE, kernel=np.ones((5, 5), dtype=np.uint8), dst=image) line = cv2.reduce(image, 1, cv2.REDUCE_AVG).flatten() line[line < 200] = 0 line[line >= 200] = 255