loading...

Canny Edge Detection OpenCV Python

divshekhar profile image Divyanshu Shekhar ・1 min read

Edge Detection deals with the contours of an image that is usually denoted in an image as an outline of a particular object.

There’s a lot of edge detection algorithms like Sobel, Laplacian, and Canny.

The Canny Edge Detection algorithm is the most commonly used for ease of use as well as the degree of accuracy.

Composition of Canny Edge Detection

The Canny edge detection OpenCV algorithm is composed of 5 steps:

  1. Noise Reduction – If noise is not removed it may cause the image to detect incorrect edges.
  2. Gradient Calculation
  3. Non-maximum Suppressions
  4. Double threshold
  5. Edge Tracking by Hysteresis

Learn the canny edge detection opencv python code from the original post.

Discussion

pic
Editor guide