> 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/blur-augmentation.md).

# Blur Augmentation

Add random Gaussian blur to make your model more resilient to variations in camera focus.

Blur adds a random amount of Gaussian blur to an image, which averages each pixel with its neighbors and softens edges. Your model learns to recognize objects when the camera is out of focus, instead of relying on sharp edges that may not exist at inference time.

## Settings

* Pixels: the largest blur, from 0 to 25 px, set with the slider. The default is 2.5 px. Each augmented image gets a random amount of blur between 0 and this value. The "Create New Version" page warns you at 5 px and above.

## When to Use

* Some production images are out of focus or soft (ex: a phone camera scanning objects up close, a camera with autofocus, a drone in wind).
* Your model overfits to hard edges in sharp training images.

For blur from movement, use [Motion Blur](https://docs.roboflow.com/datasets/versions/dataset-versions/image-augmentation/augmentation-types/motion-blur-augmentation.md).

## When Not to Use

* Your camera always holds focus (ex: a fixed inspection station).
* Fine detail is the signal (ex: small defects, thin cracks, text for OCR). Blur can erase it. Use little or none.

## Example

<figure><img src="https://2252499186-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNVfRxNsvCh4GOyqrjmzX%2Fuploads%2Fgit-blob-8c589f0cbd422c0e945af06f19661a5414daa9d8%2Faugmentation-example-blur.png?alt=media" alt="A detail of the image without blur, with 2.5 px of blur, and with 10 px of blur"><figcaption><p>Example: a detail of the image with the default maximum of 2.5 px, and with 10 px. 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-8e6cdfcb626064214ab50c325aacaa450d34011c%2Faugmentation-blur-modal.png?alt=media" alt="The Blur modal with the slider at 2.5 px out of 25 px and previews at 0 px and 2.5 px"><figcaption><p>The Blur settings.</p></figcaption></figure>
