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

Refactor: OS module

- Refactor OS explore, able to run without 5000 oil item
- Fix: Screenshot interval recover
This commit is contained in:
LmeSzinc
2021-09-26 07:44:26 +08:00
parent e1f6df02bd
commit a52826594e
25 changed files with 927 additions and 280 deletions

View File

@@ -58,7 +58,7 @@ class GlobeDetection:
self.globe = image
# Load homography
backup = self.config.cover(
backup = self.config.temporary(
HOMO_STORAGE=self.config.OS_GLOBE_HOMO_STORAGE, DETECTING_AREA=self.config.OS_GLOBE_DETECTING_AREA)
self.homography.find_homography(*self.config.HOMO_STORAGE, overflow=False)
self.homo_center = self.screen2globe([self.config.SCREEN_CENTER])[0].astype(int)