# The white balance

**URL:** <https://forums.openmv.io/t/the-white-balance/1381>\
**Category:** OpenMV Boards\
**Created:** [August 14, 2019, 5:21am UTC](https://forums.openmv.io/t/the-white-balance/1381 "2019-08-14T05:21:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chenyukai](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@chenyukai](https://forums.openmv.io/u/chenyukai)\
**Post date:** [August 14, 2019, 5:21am UTC](https://forums.openmv.io/t/the-white-balance/1381/1 "2019-08-14T05:21:58Z")

</div>

Don’t OpenMV need to turn on white balance when working?  
What functions require white balance gain?  
Or what kind of environment needs to be turned on?

---

<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:** [August 14, 2019, 3:50pm UTC](https://forums.openmv.io/t/the-white-balance/1381/2 "2019-08-14T15:50:00Z")

</div>

White balance is on by default for the camera modules. You should turn it off for color tracking. If white balance is not used the image colors will look off given the environment.

---

<div class="post-metadata">

**Author:** ![chenyukai](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@chenyukai](https://forums.openmv.io/u/chenyukai)\
**Post date:** [August 22, 2019, 1:14am UTC](https://forums.openmv.io/t/the-white-balance/1381/3 "2019-08-22T01:14:51Z")

</div>

Do you have to turn off the white balance when looking for color blocks?  
For example, does openmv have to be on white balance to run in a factory?

---

<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:** [August 22, 2019, 5:32am UTC](https://forums.openmv.io/t/the-white-balance/1381/4 "2019-08-22T05:32:36Z")

</div>

Yes, just do:

sensor.set\_auto\_white\_bal(False)

Immediately after resetting the sensor.

[http://docs.openmv.io/library/omv.sensor.html?highlight=white%20balance#sensor.sensor.set\_auto\_whitebal](http://docs.openmv.io/library/omv.sensor.html?highlight=white%20balance#sensor.sensor.set_auto_whitebal)

---

<div class="post-metadata">

**Author:** ![chenyukai](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@chenyukai](https://forums.openmv.io/u/chenyukai)\
**Post date:** [August 27, 2019, 3:20am UTC](https://forums.openmv.io/t/the-white-balance/1381/5 "2019-08-27T03:20:48Z")

</div>

How far does the Apriltag feature recognize?

---

<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:** [August 27, 2019, 4:14am UTC](https://forums.openmv.io/t/the-white-balance/1381/6 "2019-08-27T04:14:42Z")

</div>

Depends on the tag size relative to the camera. An 8"x8" tag is about 8ft.
