1 | initial version |
The standard way of handling this variation is by performing a normalization of the lightning.
But there are many other ways (including a Contrast Stretch, a Log filter, CLAHE, or even White Color Balancing or Retinex), that can work better or worse depending on your opinion and your project.
Some guidance: