Chapter 03 - Image Processing and Acquisition using Python_Part9
Chapter 03 - Image Processing and Acquisition using Python_Part9
import cv2
import matplotlib.pyplot as plt
either writing the image to file or visualizing it. The image processing
operations are performed between the reading and writing or visualizing
the image. In this section, the code snippet that will be used for reading
and writing or visualizing the image is presented. This code snippet will
be used in most of the programs presented in this book.
Below is a sample code where cv2 and matplotlib are used.
img = cv2.imread('image1.png')