python cv2 rgb to hsv code example Example: change image to HSV hsvImage = cv2.cvtColor(image, cv2.COLOR_BGR2HSV)