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.9.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file astabc-0.1.9.tar.gz
.
File metadata
- Download URL: astabc-0.1.9.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19ec8822d6de24eb4e72f8699d8493f297e69585c4f67b058e5b74144975806e |
|
MD5 | 25c262a84a52b53263793d920dd5a70d |
|
BLAKE2b-256 | 20b6fc8c192705d2493ea558b2c7dfe4d4b24f9fa2f78e6b0abb6698dfb5b4f8 |
File details
Details for the file astabc-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: astabc-0.1.9-py3-none-any.whl
- Upload date:
- Size: 4.2 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 | 4883f7e775d2880e04ebbdeca52262ed24cd0d278ef0db87186469b252175901 |
|
MD5 | b002b329f636d51f9d1b3e7354295f14 |
|
BLAKE2b-256 | be6dab47ca52ee3c66e936ea50326dc1287eb5bdc7b5db9428eb0714082d5795 |