1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 01:38:21 +08:00

Refactor: Use numpy image cache instead of pillow image

This commit is contained in:
LmeSzinc
2022-01-23 15:50:15 +08:00
parent 6df7684a37
commit 65f166ad12
51 changed files with 286 additions and 228 deletions

View File

@@ -1,7 +1,6 @@
import os
import lz4.block
from PIL import Image
from adbutils.errors import AdbError
from module.base.utils import *
@@ -139,7 +138,6 @@ class AScreenCap(Connection):
image = cv2.flip(image, 0)
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
image = Image.fromarray(image)
return image
def __process_screenshot(self, screenshot):