March 2018
Beginner to intermediate
306 pages
9h 54m
English
Here are the steps needed to complete this recipe:
import cv2import matplotlib.pyplot as plt
image = cv2.imread('../data/Lena.png')
edges = cv2.Canny(image, 200, 100)
plt.figure(figsize=(8,5))plt.subplot(121)plt.axis('off')plt.title('original')plt.imshow(image[:,:,[2,1,0]])plt.subplot(122)plt.axis('off')plt.title('edges')plt.imshow(edges, cmap='gray')plt.tight_layout()plt.show()