1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-18 16:11:29 +08:00

Fix: Map swipe optimize should use local map view to generate blacklist

- Opt: Take less screenshots during swipe, reuse local view object as possible
- Refactor: handle_boss_appear_refocus()
- Fix: Update swipe box area in map, avoid clicking auto search
This commit is contained in:
LmeSzinc
2021-11-22 18:02:40 +08:00
parent 153c9fb491
commit 7a0c566a9e
14 changed files with 112 additions and 74 deletions

View File

@@ -112,6 +112,10 @@ class Perspective:
edge_v = edge_v.delete(inner_v, threshold=self.config.TRUST_EDGE_LINES_THRESHOLD)
self.horizontal = horizontal
self.vertical = vertical
if not self.horizontal:
raise MapDetectionError('No horizontal line detected')
if not self.vertical:
raise MapDetectionError('No vertical line detected')
# Calculate perspective
self.crossings = self.horizontal.cross(self.vertical)