Skip to content

HasanKhan-1/Canny

Repository files navigation

Canny

Canny is a simple edge detection application that applies the Canny edge detection algorithm to images.

Features

  • Load and display images
  • Apply Canny edge detection with customizable parameters
  • Save processed images

Getting Started

Prerequisites

  • Python 3.6+
  • Required packages:
    • OpenCV (cv2)
    • NumPy
    • Matplotlib (for visualization)

Installation

  1. Clone this repository:

    git clone https://github.com/yourusername/Canny.git
    cd Canny
    
  2. Install dependencies:

    pip install opencv-python numpy matplotlib
    

Usage

Run the main script:

python canny.py

Adjust the threshold parameters to control the sensitivity of the edge detection.

How It Works

The Canny edge detection algorithm works through these steps:

  1. Noise reduction using Gaussian filter
  2. Gradient calculation
  3. Non-maximum suppression
  4. Double threshold to determine potential edges
  5. Edge tracking by hysteresis

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Based on John F. Canny's edge detection algorithm
  • Inspired by computer vision techniques in image processing

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages