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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file astabc-0.1.12.tar.gz.
File metadata
- Download URL: astabc-0.1.12.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d318900178950e352dd03cb3d28281336b91cf7dc468ccdbbb42e313d2710f63
|
|
| MD5 |
2af192499abdda3eb28c99a8b54f1c8b
|
|
| BLAKE2b-256 |
e9db092f55139ac0a6fed69b455a8114de37bd85d335fc3262650fc753ae4e67
|
File details
Details for the file astabc-0.1.12-py3-none-any.whl.
File metadata
- Download URL: astabc-0.1.12-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
816f6738538ce933af2bf9e017eb679d7e4b586c573b8ae2ecb4e2e582068bb5
|
|
| MD5 |
791e068f803a1c476fed61a9aa0960bb
|
|
| BLAKE2b-256 |
d60c7eb4d1c2b10d1c784e58a6168c1539f482c9a211ef7f6e1fbe2d498175a6
|