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.12.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e6d2b44003a189d1336f70e45ba4898d7a22c5ec43d63597acd5ba601dce1f6 |
|
MD5 | 5cf321194b32b9db95dba92962a7fb47 |
|
BLAKE2b-256 | 2d392d646682594769408d94b24223af07ec5695f74682d75bf497a21c7302ea |
Hashes for document_image_utils-0.1.12.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6075aab2da12fcdec72db9abf8654348f76a183eefd1ea211a3b151d85d526e3 |
|
MD5 | a6c3b6e1437dfaf9a1c4ae23bfc7ace3 |
|
BLAKE2b-256 | 6658541cdf34ffdf2403c675b9c7f9c167c66d23e21ac3e9995218a7d0679886 |