In [1]:
import cv2

In [2]:
# read the image as a grayscale

In [3]:
# Detect edges with Canny Edge Detector
# First argument is the input image.
# Second and third arguments are the minVal and maxVal.
# Third argument is the size of Sobel kernel used for find image gradients (aperture_size).

cv2.imshow("Original image", image)