Project idea · ungraded

Photo Filters with NumPy

Build a small photo-filter program using only NumPy array operations: greyscale, brightness and contrast, blur, edge detection and a vignette — applied to your own photos.

You will use

Milestones

Build the smallest working version first. Ticks are saved in this browser only.

Stretch goals

  • Write a sepia filter as a 3×3 colour matrix applied with matrix multiplication.
  • Compare your blur's speed with a Python double loop.
  • Build a command-line tool that chains filters: `python filters.py in.jpg out.jpg grey blur vignette`.

Data

Run it yourself

pip install numpy pillow
python filters.py photo.jpg