An efficient and fast library to detect loops, edges and outer boundary in binary images
Project description
pyedgeloop
PyEdgeLoop is a fast and simple python package to detect loops, outer boundary and edges in binary images.
This library was initially created to help detect loops and boundaries/edges in word images. It plays an important role in segmentation of cursive handwriting
segmentation. But it can be used for many other purposes also.
Installation
pip install pyedgeloop
Usage
import pyedgeloop as detect
import cv2
Im = cv2.imread(your_filename)
Loops, Edges, Boundary = detect.DetectLoopsEdges(Im)
Examples
Here are some examples where we are finding loops and boundary of a handwritten word image-
Input
1
2
Output
Loops
1
2
Outer Boundary
1
2
Edges
1
2
Here is another example where we need to detect only edges-
Input
Output Edges
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Author
Aditya Dutt - https://github.com/AdityaDutt
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.