1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-19 09:33:32 +08:00

Upd: gemsfarming flagship change

This commit is contained in:
2024-09-18 12:54:17 +08:00
parent f2bf7d6e59
commit c8d7b3efe9

View File

@@ -440,14 +440,14 @@ class GemsFarming(CampaignRun, Dock, EquipmentChange, GemsEquipmentHandler):
return candidates return candidates
def find_candidates(self, template, scanner, output=False): def find_candidates(self, template, scanner):
""" """
Find candidates based on template matching using a scanner. Find candidates based on template matching using a scanner.
""" """
candidates = [] candidates = []
for item in template: for item in template:
candidates = [ship for ship in scanner.scan(self.device.image, output=output) candidates = [ship for ship in scanner.scan(self.device.image, output=False)
if item.match(self.image_crop(ship.button, copy=False), similarity=SIM_VALUE)] if item.match(self.image_crop(ship.button, copy=False), similarity=SIM_VALUE)]
if candidates: if candidates:
break break