I'm trying to make a lane detection program using python and cv2. I noticed that lowering the brightness will make lines more visible compared to the rest of the pictures.
gamma = 4
lookUpTable = np.empty((1,256), np.uint8)
for i in range(256):
lookUpTable[0,i] = np.clip(pow(i / 255.0, gamma) * 255.0, 0, 255)
The only problem is that the brightness needs to be adjusted for each video I try. Some lines may be ereased and if the camera quality is bad, they won't get detected.