Image Processing in Python

3.2 Many ways to read an image Reading an image can be done using pillow, scikit-image, opencv or matplotlib image_filename =’someimagefile’ # using pillow from PIL import Image im = np.array(Image.open(image_filename)) print(im.shape) # Using opencv import cv2 im = cv2.imread(image_filename) print(im.shape) # using scikit-image import ... ................
................