# Light influencing the camera

**URL:** <https://forums.openmv.io/t/light-influencing-the-camera/10166>\
**Category:** OpenMV Boards\
**Created:** [November 6, 2024, 6:22pm UTC](https://forums.openmv.io/t/light-influencing-the-camera/10166 "2024-11-06T18:22:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joaop](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@joaop](https://forums.openmv.io/u/joaop)\
**Post date:** [November 6, 2024, 6:22pm UTC](https://forums.openmv.io/t/light-influencing-the-camera/10166/1 "2024-11-06T18:22:00Z")

</div>

This image occurs when I first turn on the LEDs and then turn on the camera.

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/4/4665610818d1c920b1e92a705154ce34ea335822.png)

And this other image occurs when I first start the camera and then turn on the LEDs.

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/4/4e6eb10065dc3e878167cd6c9944853af8941833.png)

Is there any way to solve this ? either in the code ? keeping in mind that during the process it keeps turning on and off.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [November 6, 2024, 7:07pm UTC](https://forums.openmv.io/t/light-influencing-the-camera/10166/2 "2024-11-06T19:07:48Z")

</div>

Yes, you should fix this by turning off auto gain and auto white balance right after startup.

[sensor — camera sensor — MicroPython 1.23 documentation](https://docs.openmv.io/library/omv.sensor.html#sensor.set_auto_whitebal)

[sensor — camera sensor — MicroPython 1.23 documentation](https://docs.openmv.io/library/omv.sensor.html#sensor.set_auto_gain)

You may also wish to play with the auto exposure.

[sensor — camera sensor — MicroPython 1.23 documentation](https://docs.openmv.io/library/omv.sensor.html#sensor.set_auto_exposure)
