1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-08-13 03:11:47 +08:00

Fix: use np.float32 (fixed #5860)

This commit is contained in:
LmeSzinc
2026-08-05 00:31:31 +08:00
parent 0019c0dabc
commit bcc05cd0d2

View File

@@ -28,7 +28,7 @@ class ShopScroll(Scroll):
self.area[2] + delta_x,
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)
masked_color = image[:, image.shape[1] // 2, :]
background_mask = background_transparency * np.array(self.color) + (1 - background_transparency) * baseline_color