Canny is a simple edge detection application that applies the Canny edge detection algorithm to images.
- Load and display images
- Apply Canny edge detection with customizable parameters
- Save processed images
- Python 3.6+
- Required packages:
- OpenCV (cv2)
- NumPy
- Matplotlib (for visualization)
-
Clone this repository:
git clone https://github.com/yourusername/Canny.git cd Canny -
Install dependencies:
pip install opencv-python numpy matplotlib
Run the main script:
python canny.py
Adjust the threshold parameters to control the sensitivity of the edge detection.
The Canny edge detection algorithm works through these steps:
- Noise reduction using Gaussian filter
- Gradient calculation
- Non-maximum suppression
- Double threshold to determine potential edges
- Edge tracking by hysteresis
This project is licensed under the MIT License - see the LICENSE file for details.
- Based on John F. Canny's edge detection algorithm
- Inspired by computer vision techniques in image processing