Image Processing with Pillow – a Python Code-Along


In this lesson, we’ll focus on the Pillow Python library, also known as PIL.
I’ll show you a few basic functions and useful tricks to manipulate each and every pixel on a given image. By the end of this video, you’ll know how mathematical operations affect images and you’ll be comfortable with exploring Pillow further on your own! #imageprocessing #python #pillow #PIL #computervision
Timestamps: 00:00 – Intro
01:15 – Import PIL functions
01:35 – Load an image and display it
2:17 – Image attributes: size and mode
3:16 – Plotting 2 images inline (Matplotlib)
3:36 – Multiply / Merge Images ImageChops.multiply()
4:36 – Adding Images / Finding the common area with ImageChops.add()
5:13 – Change color mode to Greyscale and Binary
6:34 – Mapping pixels / Creating image coordinates
6:59 – Accessing individual pixel values
7:44 – Converting an RGB image into Binary with a nested “for” loop
9:06 – Converting a Greyscale image into Binary with a nested “for” loop
10:19 – Selecting image regions with row and column conditions
11:30 – Invert image with ImageChops.invert() 12:30 – Rotate image with PIL.rotate()
13:18 – Gaussian Blue and Edge Detection with ImageFilter
15:10 – Outro, thanks for watching! 🙂
Pillow documentation:
Reach out on LinkedIn:
Follow me on Facebook:
Follow me on Instagram:

Leave a Reply