Skip to main content

High-performance image processing functions for deep learning and computer vision.

Project description

Albucore: High-Performance Image Processing Functions

Albucore is a library of optimized atomic functions designed for efficient image processing. These functions serve as the foundation for Albumentations, a popular image augmentation library.

Overview

Image processing operations can be implemented in various ways, each with its own performance characteristics depending on the image type, size, and number of channels. Albucore aims to provide the fastest implementation for each operation by leveraging different backends such as NumPy, OpenCV, and custom optimized code.

Key features:

  • Optimized atomic image processing functions
  • Automatic selection of the fastest implementation based on input image characteristics
  • Seamless integration with Albumentations
  • Extensive benchmarking for performance validation

Installation

pip install albucore

Usage

import numpy as np
import albucore
# Create a sample image
image = np.random.randint(0, 256, (100, 100, 3), dtype=np.uint8)
# Apply a function
result = albucore.multiply(image, 1.5)

Albucore automatically selects the most efficient implementation based on the input image type and characteristics.

Functions

Albucore includes optimized implementations for various image processing operations, including:

  • Arithmetic operations (add, multiply, power)
  • Normalization (per-channel, global)
  • Geometric transformations (vertical flip, horizontal flip)
  • Helper decorators (to_float, to_uint8)

Performance

Albucore uses a combination of techniques to achieve high performance:

  1. Multiple Implementations: Each function may have several implementations using different backends (NumPy, OpenCV, custom code).
  2. Automatic Selection: The library automatically chooses the fastest implementation based on the input image type, size, and number of channels.
  3. Optimized Algorithms: Custom implementations are optimized for specific use cases, often outperforming general-purpose libraries.

Benchmarks

We maintain an extensive benchmark suite to ensure Albucore's performance across various scenarios. You can find the benchmarks and their results in the benchmarks directory.

License

MIT

Acknowledgements

Albucore is part of the Albumentations project. We'd like to thank all contributors to Albumentations and the broader computer vision community for their inspiration and support.

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

albucore-0.0.21.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

albucore-0.0.21-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file albucore-0.0.21.tar.gz.

File metadata

  • Download URL: albucore-0.0.21.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for albucore-0.0.21.tar.gz
Algorithm Hash digest
SHA256 345ea0bdb0788dfda2111f56b790b642a46c87a588b7e94c1ee6abd2b20bfdea
MD5 f9feedf5f42eb6cbcd10226afa9f6ad5
BLAKE2b-256 0ca06ea5e152ddeea4d456ff471b502934ed5c72285588c6b3982c97a14377b5

See more details on using hashes here.

File details

Details for the file albucore-0.0.21-py3-none-any.whl.

File metadata

  • Download URL: albucore-0.0.21-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for albucore-0.0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 4a635e0bd969780d3891ece0fff9825f26f584b35df49b247a7938afd524daec
MD5 233373239e5179221bbc4056d21ad7df
BLAKE2b-256 d8b841537088d6aa172df97dc68e90e5702b7544674b075733d3e502ff2ae941

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