The Canny edge detector is an edge detection operator that uses a multi-stage algorithm to detect a wide range of edges in images. The Canny edge detector is arguably the most well known and the most used edge detector in all of computer vision and image processing. OpenCV provides method to seamlessly implement Canny edge detection over any images using canny() method.
The Canny edge detection algorithm is composed of 5 steps:
- Noise reduction
- Gradient calculation
- Non-maximum suppression
- Double threshold
- Edge Tracking by Hysteresis.