hsv to rgb opencv code example
Example 1: opencv python convert rgb to hsv
hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
Example 2: opencv python rgb to hsv
colorsys.rgb_to_hsv(px[2], px[1], px[0})
hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
colorsys.rgb_to_hsv(px[2], px[1], px[0})