A package for line and word segmentation of handwritten scanned text
Project description
HandySeg package
1. Line Segmentation from Handwritten Text
Overview
Seam Carving and Horizontal Projection Profiles (HPP) are used to segment lines of handwritten text from an image. Initially, HPP is used to detect lines, ensuring the seam's path between lines does not shift outside the boundary, maintaining alignment based on low energy.
Figure A: Horizontal projection profile of handwritten text image
Figure B: Handwritten text image with crossed out lines
Energy calculation is performed, and an algorithm is applied to find the low path energies between lines, ensuring paths do not extend beyond the identified rows. This maintains the integrity of the seam's path.
Figure C: The lowest path energies between each two lines
Figure D: Segmented handwritten line text
2. Word Segmentation from Segmented Lines
Overview
First, a Close Morphological operation is applied to the segmented line using a kernel size dependent on both the width and length of the segmented line.
Figure E: The binary image after applying the Closing Morphological operation
Next, contours of the preprocessed segmented line image are found.
Figure F: Drawn a rectangle around each word
Figure G: Segmented word
Limitations
Line Segmentation:
- Does not work well on images with objects other than handwritten text.
- Not effective for lines with a large width.
Word Segmentation:
- Ineffective for words with excessive space between characters.
- Not suitable for words with minimal space between them.
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.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file HandySeg-0.3.0.tar.gz.
File metadata
- Download URL: HandySeg-0.3.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
baab099c06c8994395538b26c2924a5df7ac6fbaf127af4ae83a92181b4de1b3
|
|
| MD5 |
4e013f1839f38d02bb59e8bfe0b11f01
|
|
| BLAKE2b-256 |
429d4dd08d20fdc347c9fa0de31285c43e7b40b6725f57e79f074531dab1c2b7
|
File details
Details for the file HandySeg-0.3.0-py3-none-any.whl.
File metadata
- Download URL: HandySeg-0.3.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fed579ca1073ad5f8e1395c074b30abb6db0dd2f2310ddb35e299676619f5fb
|
|
| MD5 |
29c418954a5057a6d5c232864d8147c2
|
|
| BLAKE2b-256 |
b6bf0d8090f393cd45e78c99e54daa5392fffc7dbc537439a05c1d8e298c134f
|