mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-22 08:37:42 +00:00
Fix: [ALAS] Remove the use of np.float
This commit is contained in:
parent
cb7386374d
commit
a078c14f25
@ -620,7 +620,7 @@ def rgb2hsv(image):
|
|||||||
Returns:
|
Returns:
|
||||||
np.ndarray: Hue (0~360), Saturation (0~100), Value (0~100).
|
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)
|
image *= (360 / 180, 100 / 255, 100 / 255)
|
||||||
return image
|
return image
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user