from imutils import * image = imread('image/school.jpg') show(image) def edge_detection(image,minVal=100,maxVal=200): image = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY) edges = cv2.Canny(image,minVal,maxVal) plt.imshow(edges,'gray') plt.axis('off') plt.show() edge_detection(image)