mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-14 07:08:04 +08:00
Fix: Binarilize story row colors
This commit is contained in:
parent
48dd665448
commit
4b8d3add95
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user