mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-17 11:05:25 +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:
@@ -17,6 +17,10 @@ class Assets:
|
||||
def ui_mask(self):
|
||||
return UI_MASK.image
|
||||
|
||||
@cached_property
|
||||
def ui_mask_os(self):
|
||||
return UI_MASK_OS.image
|
||||
|
||||
@cached_property
|
||||
def ui_mask_stroke(self):
|
||||
kernel = cv2.getStructuringElement(cv2.MORPH_RECT, (3, 3))
|
||||
@@ -33,7 +37,7 @@ class Assets:
|
||||
def ui_mask_os_in_map(self):
|
||||
area = np.append(np.subtract(0, DETECTING_AREA[:2]), self.ui_mask.shape[::-1])
|
||||
# area = (-123, -55, 1157, 665)
|
||||
return crop(UI_MASK_OS.image, area)
|
||||
return crop(self.ui_mask_os, area)
|
||||
|
||||
@cached_property
|
||||
def tile_center_image(self):
|
||||
|
||||
Reference in New Issue
Block a user