The Canny edge detector is an edge detection operator that uses a multi-stage algorithm to detect a wide range of edges in images. It was developed by John F. Canny in 1986. For algorithm and concept behind, please refer to the project reference below.
Project Reference: https://en.wikipedia.org/wiki/Canny_edge_detector https://towardsdatascience.com/canny-edge-detection-step-by-step-in-python-computer-vision-b49c3a2d8123#:~:text=%20Canny%20Edge%20Detection%20Step%20by%20Step%20in,pixels%20are%20pixels%20that%20have%20an...%20More%20 Image scanning: https://scratch-image-scanner.slmj.repl.co/ from project by MonkeyBean2 : https://scratch.mit.edu/projects/631798903/ Thank you MonkeyBean2. Thank you iaobardar for providing information about separable filter : https://youtu.be/SiJpkucGa1o