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

Uploaded Source

Built Distribution

astabc-0.1.12-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for astabc-0.1.12.tar.gz
Algorithm Hash digest
SHA256 d318900178950e352dd03cb3d28281336b91cf7dc468ccdbbb42e313d2710f63
MD5 2af192499abdda3eb28c99a8b54f1c8b
BLAKE2b-256 e9db092f55139ac0a6fed69b455a8114de37bd85d335fc3262650fc753ae4e67

See more details on using hashes here.

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

Hashes for astabc-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 816f6738538ce933af2bf9e017eb679d7e4b586c573b8ae2ecb4e2e582068bb5
MD5 791e068f803a1c476fed61a9aa0960bb
BLAKE2b-256 d60c7eb4d1c2b10d1c784e58a6168c1539f482c9a211ef7f6e1fbe2d498175a6

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