import Image # Translated from source of colorsys.rgb_to_hsv# r,g,b should be a numpy arrays with values between 0 and 255
# rgb_to_hsv returns an arrayof colorsys.hs
我有一个csv文件,其中rgb颜色值在三个不同的列中,我希望使用colorsys将其转换为hsv。我的代码首先尝试将RGB值除以255,以获得0-1之间的值,然后尝试为colorsys.rgb_to_hsv创建变量,这些变量将以正确列中的值为目标。= colorsys.rgb_to_hsv(R, G, B)
for x in df[[