Book Image

Python Image Processing Cookbook

By : Sandipan Dey
Book Image

Python Image Processing Cookbook

By: Sandipan Dey

Overview of this book

With the advancements in wireless devices and mobile technology, there's increasing demand for people with digital image processing skills in order to extract useful information from the ever-growing volume of images. This book provides comprehensive coverage of the relevant tools and algorithms, and guides you through analysis and visualization for image processing. With the help of over 60 cutting-edge recipes, you'll address common challenges in image processing and learn how to perform complex tasks such as object detection, image segmentation, and image reconstruction using large hybrid datasets. Dedicated sections will also take you through implementing various image enhancement and image restoration techniques, such as cartooning, gradient blending, and sparse dictionary learning. As you advance, you'll get to grips with face morphing and image segmentation techniques. With an emphasis on practical solutions, this book will help you apply deep learning techniques such as transfer learning and fine-tuning to solve real-world problems. By the end of this book, you'll be proficient in utilizing the capabilities of the Python ecosystem to implement various image processing techniques effectively.
Table of Contents (11 chapters)

Image colorization with deep learning

In this recipe, you will learn how to use a pre-trained deep learning model to convert a grayscale image into a plausible color version. Zhang et al. propose a fully automatic image-colorization model that produces realistically colored images given a grayscale input image. The model was practiced on over a million target color images. In the testing phase, we just need to run a forward pass on the CNN to predict the output colored image when given a grayscale input. The algorithm was evaluated using a colorization Turing test, where the human participants were asked to choose between a model-generated and a ground-truth color image (which resulted in the model successfully fooling the humans in 32% of the trials). The following diagram shows the architecture of the deep CNN:

...