how to increase contrast of grayscale image using cv2 python code example Example: increase contrast cv2 # Enhance image image_enhanced = cv2.equalizeHist(image)