Deskew any images faster than ever
Project description
fast_deskew
An optimised way to deskew images faster.
• Available on :The Python Package Index (PyPI) :
https://pypi.org/
Installation
pip install fast_deskew
How to use it?
import fast_deskew
INPUT_IMAGE_PATH = "example/input_image.png"
img_input = cv2.imread(INPUT_IMAGE_PATH,cv2.IMREAD_GRAYSCALE)
result_image, best_angle = fast_deskew.deskew_image(img_input)
OR
import fast_deskew
INPUT_IMAGE_PATH = "example/input_image.png"
result_image, best_angle = fast_deskew.deskew_image(INPUT_IMAGE_PATH, False) #0 for image array and 1 for image_path.
Input Image:
Output Image:
License
© 2021 Subham Prasad
This repository is licensed under the MIT license. See LICENSE for details.
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 fast_deskew-1.0.tar.gz.
File metadata
- Download URL: fast_deskew-1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11012b94c4b7c2cb976a5c9ffcb9437a46f0fb6049a5b7d97498defe1587eaa4
|
|
| MD5 |
48f8879ecb768cedbcd275e276ef7577
|
|
| BLAKE2b-256 |
647594e03ac1073c7b5d0fc14120650368a922ff7582a4dddf72a6ae7b1e7b3d
|
File details
Details for the file fast_deskew-1.0-py3-none-any.whl.
File metadata
- Download URL: fast_deskew-1.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfa7bd4e18f372ab685522d47fc8d1f5cf8af3cafaaccd760c1a5ff776376b26
|
|
| MD5 |
55a96984e0a5eb45e7c3937de9f650e6
|
|
| BLAKE2b-256 |
bdc8cbe523615ccd1f729db4178f60bfd1c566bb7e933c6c1659c9eb1d8caacb
|