mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 08:38:20 +08:00
Pref: Reuse image array to improve memory performance
This commit is contained in:
@@ -225,7 +225,8 @@ class LoginHandler(UI):
|
||||
XPS('//*[@content-desc="请滑动阅读协议内容"]', xp, hierarchy)])
|
||||
|
||||
test_image_original = self.device.image
|
||||
image_handle_crop = crop(test_image_original, (start_padding_results[2], 0, start_margin_results[2], 720))
|
||||
image_handle_crop = crop(
|
||||
test_image_original, (start_padding_results[2], 0, start_margin_results[2], 720), copy=False)
|
||||
# Image.fromarray(image_handle_crop).show()
|
||||
sims = color_similarity_2d(image_handle_crop, color=(182, 189, 202))
|
||||
points = np.sum(sims >= 255)
|
||||
|
||||
Reference in New Issue
Block a user