I am using OpenCV python to convert a single HSL value to RGB value.
Since there is no HSL2RGB flag, so I used HLS2RGB flag. I assumed HSL and HLS refers to the same color space but just flipping the S and L values. Is that right?
So here is my attempt:
import cv2
hls = (0, 50, 100) # This is color Red
rgb = cv2.cvtColor( np.uint8([[hls]] ), cv2.COLOR_HLS2RGB)[0][0]
After conversion, rgb
value is [70, 30, 30]
However, when I checked this RGB value on online RGB picker, the color is dark brown.
Any idea where could go wrong in the conversion? Thanks