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.
Project idea · ungraded
Photo Filters with NumPy
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
Your own photos. Pillow only loads and saves the files; the filters themselves use NumPy (broadcasting guide).
Run it yourself
pip install numpy pillow
python filters.py photo.jpg