A Python module for automatic brightness and contrast optimization
Project description
astabc
The astabc
module is a Python module that provides functions for automatic brightness and contrast optimization of images.
Installation
You can install the astabc
module using pip
:
pip install astabc
Usage
import astabc
# Read an image from a file
image = astabc._read_image('filename.jpg')
# Perform automatic brightness and contrast optimization
result, alpha, beta = astabc._automatic_brightness_and_contrast(image)
# Correct the brightness and contrast of an image
astabc.correct('filename.jpg', abc=25, output_filename='output.jpg')
License
This project is licensed under the MIT License - see the LICENSE file 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
astabc-0.1.11.tar.gz
(4.2 kB
view details)
Built Distribution
File details
Details for the file astabc-0.1.11.tar.gz
.
File metadata
- Download URL: astabc-0.1.11.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b612d44121752dae10d03bd847062443d737cbfc433311618f98d2a1f1d17c6d |
|
MD5 | 5178160d7a728abb790b69e9c5559d2f |
|
BLAKE2b-256 | 14b8419812d41de422ee85cb3ba6d5676454a836a925dfada75d9b20fdd02a14 |
File details
Details for the file astabc-0.1.11-py3-none-any.whl
.
File metadata
- Download URL: astabc-0.1.11-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47fc4fda76c36fc52848e2d4922a33e8f854748508ec71ab10803c349fa89226 |
|
MD5 | 07f87c4219cc428413afdda9122a7305 |
|
BLAKE2b-256 | 281b4fad53cd0c634ab03493790f12b339468d0ae2112e9a1e65ed11b8728034 |