1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-05-26 06:07:12 +08:00
This commit is contained in:
2026-05-21 03:50:33 +08:00
16 changed files with 95 additions and 29 deletions

View File

@@ -342,6 +342,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