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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: astabc-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 0efaa0a711805e47a991309a151312c9a57c199d90ec9ea800086e2fbe8360bd
MD5 70596c5e1d82d96447f72ea3424c7470
BLAKE2b-256 1af7fab5b8320cf57bde39a1ea57631a2f3d3ddfc7f424b1492b589fb04aff4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: astabc-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e2fe7fa38aa77821c59ab49bd82b42f8d61968329719e481eeafe81ab06e22c2
MD5 895c06a199865140c28917ee35372f1c
BLAKE2b-256 95b20d9b94940e75be392c2df66fb48330732b8b141634d062b36cd6c6ca3019

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