Skip to content

travisyx/canny-edge-detector

Repository files navigation

canny-edge-detector

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 Origin swan image

Output 1: Edges for swan image

Image 2 (Source): test_images/steam_valve.png Origin steam valve image

Output 2: Edges for steam valve image

About

Image segmentation project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages