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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user