import cv2 img = cv2.imread(IMG_PATH) #reading the image edges = cv2.Canny(img,100,200) #canney edhe detecton cv2.imshow('Edges in the image', edges) #displaying the image