> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/datasets/versions/dataset-versions/image-augmentation/augmentation-types/brightness-augmentation.md).

# Brightness Augmentation

Randomly brighten or darken images to make your model resilient to lighting and camera setting changes.

Brightness makes an image lighter or darker by a random amount. Your model learns to handle changes in lighting and camera settings.

## Settings

* Percent, set with the slider: the largest change in brightness, up to 99%. The default is 15%.
* "Brighten" and "Darken": the directions to apply. With both selected, each augmented image is brightened or darkened at random. Both are selected by default.

Each augmented image changes by a random amount up to "Percent". The "Create New Version" page warns you at 26% and above.

## When to Use

* Lighting varies in production (ex: time of day, indoor versus outdoor, different camera exposure settings).
* Select only "Darken" when production images can be darker than your training images, and only "Brighten" when they can be lighter.

## When Not to Use

* Lighting is fixed and controlled (ex: a lit inspection booth).
* Brightness itself is a signal (ex: telling a lit indicator light from an unlit one).

## Example

<figure><img src="https://2252499186-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNVfRxNsvCh4GOyqrjmzX%2Fuploads%2Fgit-blob-bdac003d6efdae95addf845d9a6d34438ba3587a%2Faugmentation-example-brightness.png?alt=media" alt="The image darkened by 15% and brightened by 15%"><figcaption><p>Example: the default maximum of 15% in each direction. Boxes do not change.</p></figcaption></figure>

<figure><img src="https://2252499186-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNVfRxNsvCh4GOyqrjmzX%2Fuploads%2Fgit-blob-28fdd6fc2e7d9a6dbf9d589303663381111d4e14%2Faugmentation-brightness-modal.png?alt=media" alt="The Brightness modal with the slider at 15%, Brighten and Darken checked, and previews at -15% and 15%"><figcaption><p>The Brightness settings.</p></figcaption></figure>

## FAQs

<details>

<summary>How does brightness differ from exposure?</summary>

Brightness makes the image uniformly lighter or darker by adding the same value to every pixel.

Brightness does not respect relative intensity. Shadows and highlights shift by the same amount, which can reduce contrast. [Exposure](https://docs.roboflow.com/datasets/versions/dataset-versions/image-augmentation/augmentation-types/exposure-augmentation.md) changes bright areas faster than dark ones, closer to how a camera responds to light.

</details>
