mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 03:58:22 +08:00
Chore: Rename "threshold" in template matching to "similarity"
to be differ from the "threshold" in color matching
This commit is contained in:
@@ -29,7 +29,7 @@ class FleetSelector:
|
||||
int: Index of current fleet, 1 to 4. return 0 if unrecognized.
|
||||
"""
|
||||
for index, button in enumerate([FLEET_1, FLEET_2, FLEET_3, FLEET_4]):
|
||||
if self.main.appear(button, offset=(20, 20), threshold=0.75):
|
||||
if self.main.appear(button, offset=(20, 20), similarity=0.75):
|
||||
return index + 1
|
||||
|
||||
logger.info('Unknown OpSi fleet')
|
||||
|
||||
Reference in New Issue
Block a user