Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

2D Finite Difference for object edge detection using python3.9.10 and Pillow

License

Notifications You must be signed in to change notification settings

BlueBeret/2D-Finite-Difference-for-object-edge-detection

Repository files navigation

2D Finite Difference For Object Edge Detection

Installation

Use the package manager pip to install the requirements.

pip install -r requirements.txt

Usage

The predictObjectEdge takes 2 arguments, first one is Image Object which can be created by using PIL.Image and the second one is boundary. Experiment with the boundary value to get the best result. From my experience it's about 5-25.

from image_detection import predictObjectEdge
from PIL import Image

if __name__ == '__main__':
    # load image
    img = Image.open('sample_sunflower.jpg')
    img_result = combineImage(img,predictObjectEdge(img, 15))
    img_result.save('./result/result_sunflower' + '.jpg')

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

2D Finite Difference for object edge detection using python3.9.10 and Pillow

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages