mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 06:18:21 +08:00
Pref: Reuse image array to improve memory performance
This commit is contained in:
@@ -234,7 +234,7 @@ class GlobeCamera(GlobeOperation, ZoneManager):
|
||||
screen = self.globe2screen(location).flatten().round()
|
||||
screen = np.round(screen).astype(int).tolist()
|
||||
# Average color of whirlpool center
|
||||
center = self.image_crop(screen)
|
||||
center = self.image_crop(screen, copy=False)
|
||||
center = np.array([[cv2.mean(center), ], ]).astype(np.uint8)
|
||||
h, s, v = rgb2hsv(center)[0][0]
|
||||
# hsv usually to be (338, 74.9, 100)
|
||||
|
||||
Reference in New Issue
Block a user