Python OpenCV
About Lesson

In this Python OpenCV lesson we want to learn about Canny Edge Detection in Python OpenCV, so it is a popular edge detection algorithm. It was developed by John F. Canny in  1986. It is a multi-stage algorithm it means that there are 5 stage involving for canny edge detection. 1 Noise Reduction, 2 Calculate the gradients , 3 Non-maximum Suppression , 4 Double threshold on all the detected edges , 5 Analyzes all the edges and their connection. now there is a function in opencv cv2.Canny() and you can do all the process using this function.

 

 

 

This is the complete code for this lesson.

 

 

 

This is our Canny function, we have our input image, minValue and maxValue.

 

 

 

Run the complete code and this is the result.

Canny Edge Detection in Python OpenCV
Canny Edge Detection in Python OpenCV