mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 22:08:20 +08:00
Fix: Binarilize story row colors
This commit is contained in:
@@ -316,7 +316,8 @@ class InfoHandler(ModuleBase):
|
||||
|
||||
image = color_similarity_2d(self.image_crop(story_detect_area), color=story_option_color)
|
||||
line = cv2.reduce(image, 1, cv2.REDUCE_AVG).flatten()
|
||||
line[line < 128] = 0
|
||||
line[line < 200] = 0
|
||||
line[line >= 200] = 255
|
||||
|
||||
parameters = {
|
||||
# Option is 300`320px x 50~52px.
|
||||
|
||||
Reference in New Issue
Block a user