Introduction - If you have any usage issues, please Google them yourself
Using the Canny edge detection algorithm. Include the following steps: 1, smooth image with a Gaussian filter. 2, first-order partial derivatives of finite-difference calculation of the magnitude and direction of the gradient. 3, the gradient amplitude, non-maxima suppression. 4, dual-threshold algorithm to detect and connect edge. 5 Gaussian smoothing function