1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 06:18:21 +08:00

Fix: [ALAS] Remove the use of np.float

This commit is contained in:
LmeSzinc
2023-07-02 15:17:50 +08:00
parent 688c6023e9
commit 64f4f72c01
2 changed files with 2 additions and 2 deletions

View File

@@ -620,7 +620,7 @@ def rgb2hsv(image):
Returns:
np.ndarray: Hue (0~360), Saturation (0~100), Value (0~100).
"""
image = cv2.cvtColor(image, cv2.COLOR_RGB2HSV).astype(np.float)
image = cv2.cvtColor(image, cv2.COLOR_RGB2HSV).astype(float)
image *= (360 / 180, 100 / 255, 100 / 255)
return image