mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-05-25 11:26:54 +08:00
Merge branch 'master' of https://github.com/LmeSzinc/AzurLaneAutoScript
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user