opencv python color conversion in place code example
Example 1: cv2.cvtcolor grayscale
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
Example 2: opencv python rgb to hsv
colorsys.rgb_to_hsv(px[2], px[1], px[0})
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
colorsys.rgb_to_hsv(px[2], px[1], px[0})