Toolkit for document image processing
Project description
Contextualization
In progress toolkit for document image pre processing.
Aimed for images to be OCRed.
Available methods
-
Auto rotate image
Uses left margin of a document to calculate the angle of rotation present, and correct it accordingly.
Can be given the rotation direction (clocwise or counter_clockwise), or in auto mode tries to determine the side to which the document is tilted (can be none, in which case image won't be rotated).
-
Calculate rotation direction
Calculates rotation direction of an image by finding the biggest sets of the first black pixels appearances (with outliers removed) in the image for each direction: clockwise, counter_clockwise and none.
For none direction, the set is created based on pixels with same 'x' coordinate that with less than a 5% height difference, relative to the image's height.
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
Hashes for document_image_utils-0.1.18.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 078706a550c9c59563ad5d0c016f78d25bdda1f5626d615028cbd7f370486756 |
|
MD5 | 97686aa5c90d0819c8475c47adbda90c |
|
BLAKE2b-256 | 90f4e7e68ae657a3ece9e29dedd6b214925577282b643076815511ce5b0c02dd |
Hashes for document_image_utils-0.1.18.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e7df3cf22705757f093099d5e9f8615e5ef6738e75d0de993c9720c300ee5a4 |
|
MD5 | 551c1568a4dc526f8e0ff631cdd61924 |
|
BLAKE2b-256 | 4d45697309fadaebdc4798d0898ad7102c6999590da2b50e4a91f1387252ff97 |