1 | initial version |
Found this link how to enhance the red, green and blue color within an image? altering the saturation channel
of the HSV
colour space
I even need to reduce the brightness so I even had to alter the value
channel of the HSV
colourspace
Code
hsvImg = cv2.cvtColor(image,cv2.COLOR_BGR2HSV)
#multiple by a factor to change the saturation
hsvImg[...,1] = hsvImg[...,1]*1.4
#multiple by a factor of less than 1 to reduce the brightness
hsvImg[...,2] = hsvImg[...,2]*0.6
image=cv2.cvtColor(hsvImg,cv2.COLOR_HSV2BGR)