Skip to main content

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:

alt tag



Output Image:

alt tag

License

© 2021 Subham Prasad

This repository is licensed under the MIT license. See LICENSE for details.

Project details


Release history Release notifications | RSS feed

This version

1.0

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)

Uploaded Source

Built Distribution

fast_deskew-1.0-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page