PIL Library

Use the PIL library to extract and modify data from an image.

Chapter Goals:

  • Learn the basics of the PIL module
  • Use PIL to load an image and return its resized pixel data

A. PIL module

While we can do large scale image processing in TensorFlow, the PIL module (from Pillow) allows us to do more fine-grained image processing. In this Lab we will demonstrate basic resizing and filtering as an introduction to PIL. However, the library also has many more utility functions for advanced image processing and analysis. Documentation and extended examples using the PIL module can be found here. ...

Get hands-on with 1400+ tech skills courses.