Skip to main content

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 alt input1

      

2 alt input2


Output


Loops

1 alt output1

      

2 alt output1

Outer Boundary

1 alt output2

      

2 alt output2

Edges

1 alt output3

      

2 alt output3

Here is another example where we need to detect only edges-

Input

alt input3

Output Edges

alt output31

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

MIT

Release files for pyedgeloop 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyedgeloop 0.0.2
File Size Uploaded
pyedgeloop-0.0.2.tar.gz 3.8 kB Details

Release files / pyedgeloop-0.0.2.tar.gz

Download URL pyedgeloop-0.0.2.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0aa843bfaee23f0489c5917819b6370841945465d7505a729daf9422fcd42168
BLAKE2b-256 checksum
How to use checksums
e96d88cc2654620576943cc9f802efb01b291f3b4e32d75fec1f1dc7a77d7ce3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page