open cv rgb to hsv code example
Example 1: change image to HSV
hsvImage = cv2.cvtColor(image, cv2.COLOR_BGR2HSV)
Example 2: opencv python rgb to hsv
colorsys.rgb_to_hsv(px[2], px[1], px[0})
hsvImage = cv2.cvtColor(image, cv2.COLOR_BGR2HSV)
colorsys.rgb_to_hsv(px[2], px[1], px[0})