Skip to content

Vortex-21/Edge-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Sobel Edge Detector

This Python script demonstrates the implementation of the Sobel edge detection algorithm on an input image. The Sobel operator is used to compute the gradient of the image, highlighting edges and transitions in intensity.

Usage

  1. Requirements:

    • Python 3.x
    • Required libraries: matplotlib, numpy, opencv-python
  2. Installation:

    • Ensure you have the required libraries installed using pip:
      pip install matplotlib numpy opencv-python
  3. Running the Code:

    • Clone this repository or download the Python script.
    • Replace the image path in the mpimg.imread() line with the path to your desired input image.
    • Execute the script, and it will display the original image and the edge-detected image using the Sobel operator.

Example

Here's an example of the original image and the corresponding edge-detected image:

Screenshot 2023-09-20 181122 Original Grayscale Image

Screenshot 2023-09-20 181149 Edge-Detected Image

Credits

This code is a simple implementation of the Sobel edge detection algorithm .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages