clahe = cv2.createCLAHE(clipLimit=40.0, tileGridSize=(10,10)) img = clahe.apply(img) img = cv2.equalizeHist(img) img = cv2.convertScaleAbs(img) cv2.imshow('example', img) cv2.waitKey(0) cv2.destroyAllWindows()