DEV Community

Divyanshu Shekhar
Divyanshu Shekhar

Posted on • Updated on

Canny Edge Detection OpenCV Python

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.

Top comments (0)