Depth-Based Blur Effect

This app applies variable Gaussian blur to images based on depth estimation. Objects farther from the camera appear more blurred, while closer objects remain sharper.

5 20
Examples

How it works

  1. The app uses the Depth-Anything-V2-Small model to estimate depth in the image
  2. Depth values are normalized to a range of 0-1
  3. A variable Gaussian blur is applied based on depth values
  4. Objects farther from the camera (higher depth values) receive stronger blur
  5. Objects closer to the camera (lower depth values) remain sharper

This creates a realistic depth-of-field effect similar to what's seen in photography.