0

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. enter image description here

enter image description here

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.

Christoph Rackwitz
  • 5,130
  • 3
  • 17
  • 27
  • gamma isn't brightness. anyway, gamma mapping *maintains monotonicity*, so if you do a threshold anyway, you've gained nothing from this. -- **explain your goal** https://xyproblem.info/ – Christoph Rackwitz Dec 31 '21 at 15:10

0 Answers0