1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-09 18:39:04 +08:00

Fix: Color of stage entrance button is empty (#630)

This commit is contained in:
LmeSzinc 2021-09-25 13:27:13 +08:00
parent fa37aa7697
commit cf5fdf3fe9

View File

@ -91,6 +91,8 @@ class CampaignOcr(ModuleBase):
button_name = button.crop(area=name_area, image=image)
name = extract_letters(button_name.image, letter=name_letter, threshold=name_thresh)
button_name = button_name.crop(area=self._extract_stage_name(name))
if not len(button.color):
button.load_color(image)
button.area = button_name.area
digits.append(button)