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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for astabc-0.1.2.tar.gz
Algorithm Hash digest
SHA256 190e96fff54a67a554f17f5b575b1b03236ed5dd3c12be0d5dcf730a566049ff
MD5 3ffb95d8e5121042ad3d19b121eb417b
BLAKE2b-256 2c951cf95c7464ee7583c11c9ac5cbd5b171631a07463c5a7e684e02f9ed9666

See more details on using hashes here.

File details

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

File metadata

  • Download URL: astabc-0.1.2-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.14

File hashes

Hashes for astabc-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 771ffe461f5f51441a2c9c1fd9ad46076fd03b0090124afc39e22269e2cba53a
MD5 8e7282f3179603d66acd108f68be1433
BLAKE2b-256 33e0eaad52469473532cf5bb1d402a8fb1789c8a7ef930eeb4ac328ec0e94c04

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