A fast deskew using hough line transform
Project description
Fast-deskew
An alternative to the excellent deskew library by sbrunner using opencv for faster computation.
Installation
- Using pip:
pip install fast-deskew-cv
- From source:
pip install git+https://git@github.com/HOZHENWAI/fast_deskew.git
Usage
import cv2
from deskew import determine_skew
image_grayscale = cv2.imread('input_image.png', cv2.IMREAD_GRAYSCALE)
skew_angle = determine_skew(image_grayscale)
Note
I do not recommend you to use this library directly when dealing with angle or more than 90 but to use it after fix the global rotation.
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_cv-1.0.0.tar.gz
(4.2 kB
view details)
Built Distribution
File details
Details for the file fast_deskew_cv-1.0.0.tar.gz
.
File metadata
- Download URL: fast_deskew_cv-1.0.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63e019db0dc8e4c8f999849fc4c4de4e1f4799ac97e78ef36bd8980eaa65a463 |
|
MD5 | b46d1945b9bb9af525edee993d1e5c56 |
|
BLAKE2b-256 | aad317bd968e0e9930f024d32885b1ab450214ed48000a03e664ad9f68ec5a43 |
File details
Details for the file fast_deskew_cv-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: fast_deskew_cv-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de56b6563850c90e5a923f4ecaaea2dcaed13d878d3edfebcde83e9040acdb15 |
|
MD5 | e816bd5cb359c77b9f04a2fa3b5d28aa |
|
BLAKE2b-256 | 7142fc27199905a28a9169787cf613ad7600d09545bafbd17db7c69061a04e16 |