Machine Learning, Histogram Equalization.
img_r)) # validation equ_b = cv2.equalizeHist(b) equ_g = cv2.equalizeHist(g) equ_r = cv2.equalizeHist(r) equ = cv2.merge((equ_b, equ_g, equ_r)) #print(equ) #cv2.imwrite('output_name.png', equ) return img_out Applications You can use histogram equalization to improve the lighting of any low contrast