October 2017
Intermediate to advanced
330 pages
7h 7m
English
import numpy as npimport cv2import matplotlib.pyplot as pltimport glob
DATA_DIR = 'Data/augmentation/'images = glob.glob(DATA_DIR + '*')plt.figure(figsize=(10, 10))i = 1for image in images: img = cv2.imread(image) img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) plt.subplot(3, 3, i) plt.imshow(img) i += 1 plt.show()

def plot_images(image, function, *args): plt.figure(figsize=(10, ...
Read now
Unlock full access