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