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.10.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file astabc-0.1.10.tar.gz
.
File metadata
- Download URL: astabc-0.1.10.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2b7b8bcb19c35441c05fd6cd7db812aa221f926e89882b0d70572e5d5da95cd |
|
MD5 | eabd94f7876d3f5735fb7c1122afab8a |
|
BLAKE2b-256 | a88e64d6d843278205c814f57820d2f64d24a61372e01aef9cb992c3e040015d |
File details
Details for the file astabc-0.1.10-py3-none-any.whl
.
File metadata
- Download URL: astabc-0.1.10-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 | 18f4b548c77b21d44bcd000b25f9e0088bee8663ad7e596b911e6a2931516797 |
|
MD5 | 431d33715d9720abd8d8f728ceb8613e |
|
BLAKE2b-256 | d9ba7f7c2324f0ea3701ee31154e6d3f59ec12e3025e775ec4cd050e42a2b64f |