Opencv, Computer Vision, Image Processing, Data Science, Python.
cv2.Canny(image, threshold1, threshold2, apatureSize=3, L2gradient=False) image: 8-bit grayscale input image threshold1/threshold2: thresholds for the hysteresis procedure apertureSize: aperture size for the Sobel() operator L2gradient: A flag. True to use L2, else L1. Code Implementation: