-
Book Overview & Buying
-
Table Of Contents
Hands-On Image Processing and Computer Vision with Python - Second Edition
By :
Efficiently reading, manipulating, and visualizing images are essential skills in image processing and computer vision. In this section, we will cover key Python libraries that facilitate these tasks, allowing you to work with various image formats and seamlessly integrate image data into your projects. We will primarily assume that the images are stored as files on the disk, so reading and writing images from the files are disk input/output (I/O) operations. These can be done in many ways using different libraries, some of which are demonstrated using the following examples.
The Python Imaging Library (PIL/Pillow) provides convenient functions for image I/O, manipulation, and visualization. The Image.open() function reads an image into a PIL.Image object, from which properties such as size, width, height, mode, format, and info can be accessed. The show() method displays the image using...
Change the font size
Change margin width
Change background colour