April 2018
Beginner
552 pages
13h 58m
English
import cv2 # Import Numerical Python package - numpy as np import numpy as np
image = cv2.imread('image_5.jpg')
cv2.imshow("Original", image)
cv2.waitKey(0)
# cv2.Canny is the built-in function used to detect edges # cv2.Canny(image, threshold_1, threshold_2) canny = cv2.Canny(image, 50, 200)
cv2.imshow("Canny Edge Detection", canny)
cv2.waitKey(0)