import numpy as np
import cv2 as cv

if __name__ == '__main__':
    img = cv.imread('lena.png', cv.COLOR_BGR2LAB)
    px = img[100, 100]
    print(f'L:{px[0]}, a:{px[0]}, b:{px[0]}')

    img = cv.imread('lena.png', cv.COLOR_BGR2HSV)
    px = img[100, 100]
    print(f'Hue:{px[0]}, Saturation:{px[0]}, Value:{px[0]}')

    img = cv.imread('lena.png', cv.IMREAD_COLOR)
    px = img[100, 100]
    print(f'blue:{px[0]}, green:{px[0]}, red:{px[0]}')
