mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 13:39:25 +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