edge detection humansafter seeing rough sketchcan easily recognize many object types and their poses that is why edges play an important role in the life of humans as well as in the applications of computer vision opencv provides very simple and useful function called canny()for detecting the edges example the following example shows clear identification of the edges import opencv package as shownimport cv import numpy as np nowfor reading particular imageuse the imread(function image cv imread('penguins jpg'nowuse the canny (function for detecting the edges of the already read image cv imwrite('edges_penguins jpg',cv canny(image, , )nowfor showing the image with edgesuse the imshow(function cv imshow('edges'cv imread(''edges_penguins jpg')this python program will create an image named edges_penguins jpg with edge detection