1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-24 07:49:04 +08:00

Pref: Reuse image array to improve memory performance

This commit is contained in:
LmeSzinc
2024-06-05 00:20:31 +08:00
parent 77d48937fc
commit 58202c6a40
34 changed files with 61 additions and 58 deletions

View File

@@ -36,7 +36,7 @@ class CampaignBase(CampaignBase_):
# Smaller image to run faster
area = (73, 135, 1223, 583)
image = rgb2gray(crop(self.device.image, area=area))
image = rgb2gray(crop(self.device.image, area=area, copy=False))
# E1-1 ~ E1-2
sim, button = TEMPLATE_EVENT_20230817_STORY_E1.match_result(image)