Skip to main content

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


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.5.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

astabc-0.1.5-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file astabc-0.1.5.tar.gz.

File metadata

  • Download URL: astabc-0.1.5.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for astabc-0.1.5.tar.gz
Algorithm Hash digest
SHA256 7161d46dab6c563dcebe93843113ac97ec5d163fa5dc51df2e21fe95d0aea4c5
MD5 0cddacfdfc7cc58f4c371d58efa5ddd2
BLAKE2b-256 2c8bdb3e1493a74b2a48faa9c8465c595e07d6a4ffeb48a1417be1d654a2b029

See more details on using hashes here.

File details

Details for the file astabc-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: astabc-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for astabc-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 34817c5b2ad36ab36268e26cd63f46b5453226b444ebfe484e47171bc0629941
MD5 c791efa9493a47f514841801b9b71680
BLAKE2b-256 6925f68208466d1276279979fee50436271a1603d76cdddae8fd125c7e21403c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page