1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-04-19 17:42:13 +08:00

Upd: [TW] shop module

This commit is contained in:
xzjjasper
2023-07-14 12:15:49 +08:00
parent 065d4a8bce
commit d7765f408e
3 changed files with 0 additions and 60 deletions

View File

@@ -38,19 +38,6 @@ class MedalShop2(ShopClerk, ShopStatus):
"""
return self.config.MedalShop2_Filter.strip()
@Config.when(SERVER='tw')
def _get_medals(self):
"""
Returns:
np.array: [[x1, y1], [x2, y2]], location of the medal icon upper-left corner.
"""
left_column = self.image_crop((489, 256, 1120, 572))
medals = TEMPLATE_MEDAL_ICON.match_multi(left_column, similarity=0.5, threshold=5)
medals = Points([(0., m.area[1]) for m in medals]).group(threshold=5)
logger.attr('Medals_icon', len(medals))
return medals
@Config.when(SERVER=None)
def _get_medals(self):
"""
Returns: