mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 01:38:21 +08:00
Refactor: Use numpy image cache instead of pillow image
This commit is contained in:
@@ -164,7 +164,7 @@ class OSFleet(OSCamera, Combat, Fleet, OSAsh):
|
||||
"""
|
||||
super().hp_get()
|
||||
ship_icon = self._hp_grid().crop((0, -67, 67, 0))
|
||||
need_repair = [TEMPLATE_EMPTY_HP.match(self.image_area(button)) for button in ship_icon.buttons]
|
||||
need_repair = [TEMPLATE_EMPTY_HP.match(self.image_crop(button)) for button in ship_icon.buttons]
|
||||
self.need_repair = need_repair
|
||||
logger.attr('Repair icon', need_repair)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user