# Convert RGB to HSV Color Space

# Hue - 0 - 180, Saturation - 0 - 255, Value - 0 - 255

import cv2

img = cv2.imread('C:/Users/kamra/OpenCV/Images/lena.jpg')

img_HSV = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
cv2.imshow('HSV Image', img_HSV)

cv2.imshow('Hue Channel', img_HSV[:, :, 0])
cv2.imshow('Saturation Channel', img_HSV[:, :, 1])
cv2.imshow('Value Channel', img_HSV[:, :, 2])


cv2.waitKey(0)
cv2.destroyAllWindows()