1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-22 02:29:16 +08:00

Opt: Remove redundant converts from pillow to numpy

This commit is contained in:
LmeSzinc
2022-01-24 23:43:53 +08:00
parent c5ed59ab26
commit e92579b5f9
28 changed files with 62 additions and 64 deletions

View File

@@ -52,6 +52,5 @@ class Mask(Template):
Returns:
np.ndarray:
"""
image = np.array(image)
self.set_channel(image_channel(image))
return cv2.bitwise_and(image, self.image)