mirror of
https://github.com/sui-feng-cb/AzurLaneAutoScript1.git
synced 2026-08-13 11:12:41 +08:00
Fix: use np.float32 (fixed #5860)
This commit is contained in:
@@ -28,7 +28,7 @@ class ShopScroll(Scroll):
|
|||||||
self.area[2] + delta_x,
|
self.area[2] + delta_x,
|
||||||
self.area[3]
|
self.area[3]
|
||||||
)
|
)
|
||||||
image = main.image_crop(area, copy=False).astype(np.float)
|
image = main.image_crop(area, copy=False).astype(np.float32)
|
||||||
baseline_color = np.mean(image[:, [0, -1], :], axis=1)
|
baseline_color = np.mean(image[:, [0, -1], :], axis=1)
|
||||||
masked_color = image[:, image.shape[1] // 2, :]
|
masked_color = image[:, image.shape[1] // 2, :]
|
||||||
background_mask = background_transparency * np.array(self.color) + (1 - background_transparency) * baseline_color
|
background_mask = background_transparency * np.array(self.color) + (1 - background_transparency) * baseline_color
|
||||||
|
|||||||
Reference in New Issue
Block a user