The goal of this project is to create a canny edge detector from scratch. The only libraries used are numpy and Pillow. The only usage of Pillow is for easier image I/O.
To run this project, simply clone and run python3 main.py
. To input your own files, change the path in main.py
. Then, if you want to change the parameters, you can do so in the CannyEdgeDetector
variable in main.py
.
See some sample outputs below.
Image 1 (Source): test_images/swan.jpg
Image 2 (Source): test_images/steam_valve.png