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
fast_deskew-1.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for fast_deskew-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfa7bd4e18f372ab685522d47fc8d1f5cf8af3cafaaccd760c1a5ff776376b26 |
|
MD5 | 55a96984e0a5eb45e7c3937de9f650e6 |
|
BLAKE2b-256 | bdc8cbe523615ccd1f729db4178f60bfd1c566bb7e933c6c1659c9eb1d8caacb |