Skip to content

A simple Sobel edge detector written from scratch in python using only PIL and Numpy

Notifications You must be signed in to change notification settings

tudorhirtopanu/sobel-edge-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Sobel Edge Detection

This project provides a Python implementation of the Sobel edge detection algorithm using PIL and NumPy

Usage

  1. Clone the repository:

  2. Install dependencies:

Make sure you have Python installed. Then, install the required packages using pip:


pip install numpy pillow

  1. Run the Sobel edge detection:

Modify the image_path variable in sobel_edge_detector.py to point to your desired input image file.


image_path = 'path/to/your/image.jpg'

This will apply the Sobel edge detection algorithm to the input image and display the thresholded image with detected edges.

Parameters

  • image_path: Path to the input image file.
  • threshold: Threshold value for edge detection. Default is 100.

About

A simple Sobel edge detector written from scratch in python using only PIL and Numpy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages