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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user