{"categories":[{"label":"Information Analysis","url":"https://skillfed.io/packages/category/scientific-engineering-information-analysis/4"}],"enrichment":{"capability":"Detects and corrects image skew (rotation) in documents and text-containing images by calculating the rotation angle and providing tools to straighten them.","skillfed_tags":["document-processing","image-analysis","ocr-preprocessing"],"use_cases":["Preprocess scanned documents for OCR by detecting and reporting their rotation angle","Straighten photographs of text-heavy documents before feeding to text recognition systems","Batch-correct skewed images in document digitization pipelines","Detect rotation angle in document images without rotating, for logging or analysis","Integrate skew correction into image processing workflows using scikit-image or OpenCV"],"what_it_does":"Deskew is a Python library that detects and corrects image skew\u2014the rotation angle of text or documents in images. It analyzes grayscale images to determine the rotation angle (between -45 and 45 degrees by default, or -90 to 90 with the `angle_pm_90` option) and returns that angle for use in downstream rotation. The library works with both scikit-image and OpenCV workflows, accepting numpy arrays and integrating into standard image processing pipelines.\n\nThe package is designed for document scanning, OCR preprocessing, and text image normalization. It depends on numpy for numerical operations and scikit-image for image manipulation, making it lightweight and suitable for batch processing. A CLI tool is also provided for quick angle detection or direct deskewing of image files, and optional debug output is available to tune detection parameters when results are suboptimal.","worth_installing":"Yes. Deskew solves a specific, well-defined problem (skew detection in text images) with low install friction, active maintenance, no known vulnerabilities, and a permissive MIT license. It is suitable for document processing and OCR preprocessing workflows. Install it if you need to detect or correct image rotation in text-heavy documents."},"id":"deskew","links":{"html":"https://skillfed.io/packages/deskew","md":"https://skillfed.io/packages/deskew.md","pypi":"https://pypi.org/project/deskew/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-03","license_spdx":"MIT","license_treatment":"permissive","name":"deskew","python_support":"supports_current","summary":"Skew detection and correction in images containing text"},"popularity":{"monthly_downloads":79574,"position":14349,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.6.1"}
