Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Process Images Using the Pillow Library and Python (Summary)

You’ve learned how to use Pillow to deal with images and perform image processing. If you’ve enjoyed working with images, you may want to dive headlong into the world of image processing. There’s a lot more to learn about the theory and practice of image processing. A good starting point is Digital Image Processing by Gonzalez and Woods, which is the classic textbook in this field.

Pillow isn’t the only library that you can use in Python for image processing. If your aim is to perform some basic processing, then the techniques that you learned in this tutorial may be all you need. If you want to go deeper into more advanced image processing techniques, such as for machine learning and computer vision applications, then you can use Pillow as a stepping stone to other libraries such as OpenCV and scikit-image.

In this video course, you’ve learned how to:

  • Read images with Pillow
  • Perform basic image manipulation operations
  • Use Pillow for image processing
  • Use NumPy with Pillow for further processing
  • Create animations using Pillow

Now, look through the images in the image folder on your computer and pick a few that you can read in as images using Pillow, decide how you’d like to process these images, and then perform some image processing on them. Have fun!

For further investigation, check out:

Download

Sample Code (.zip)

2.6 MB
Download

Course Slides (.pdf)

22.7 MB

Jon Nyquist on Aug. 15, 2023

Nice Course! I saw the code and slides in the supporting material, but not the images, so I just screen-captured them.

Bartosz Zaczyński RP Team on Aug. 16, 2023

@Jon Nyquist Glad that you found a work around! Note that this course is based on a written tutorial, which links the images. You can also find them in the corresponding GitHub repository.

Become a Member to join the conversation.