1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 00:28:20 +08:00

Opt: Faster globe detection

Downscale image before template matching, time cost reduced from about 0.6s to 0.15s
- Fix: Zone info use before init
- Opt: Allow globe_goto run from IN_GLOBE
This commit is contained in:
LmeSzinc
2021-04-04 19:44:23 +08:00
parent 886ed14ef0
commit 9f4ccaaf44
5 changed files with 26 additions and 12 deletions

View File

@@ -126,6 +126,7 @@ class GlobeCamera(GlobeOperation, ZoneManager):
out: IN_GLOBE, zone selected, ZONE_ENTRANCE
"""
zone = self.name_to_zone(zone)
logger.info(f'Globe focus_to: {zone}')
interval = Timer(2, count=2)
while 1: