Skip to main content

A high-performance image processing library designed to optimize and extend the Albumentations library with specialized functions for advanced image transformations. Perfect for developers working in computer vision who require efficient and scalable image augmentation.

Project description

Albucore

Albucore is a high-performance image processing library designed to optimize operations on images using Python and OpenCV, building upon the foundations laid by the popular Albumentations library. It offers specialized optimizations for different image data types and aims to provide faster processing times through efficient algorithm implementations.

Features

  • Optimized image multiplication operations for both uint8 and float32 data types.
  • Support for single-channel and multi-channel images.
  • Custom decorators to manage channel dimensions and output constraints.

Installation

Install Albucore using pip:

pip install -U albucore

Example

Here's how you can use Albucore to multiply an image by a constant or a vector:

import cv2
import numpy as np
from albucore import multiply

# Load an image
img = cv2.imread('path_to_your_image.jpg')

# Multiply by a constant
multiplied_image = multiply(img, 1.5)

# Multiply by a vector
multiplier = [1.5, 1.2, 0.9]  # Different multiplier for each channel
multiplied_image = multiply(img, multiplier)

Benchmarks

Benchmark Results for 1000 Images of float32 Type (256, 256, 1)

albucore opencv numpy
MultiplyConstant 12925 ± 1237 10963 ± 1053 14040 ± 2063
MultiplyVector 3832 ± 512 10824 ± 1005 8986 ± 511

Benchmark Results for 1000 Images of uint8 Type (256, 256, 1)

albucore opencv numpy
MultiplyConstant 24131 ± 1129 11622 ± 175 6969 ± 643
MultiplyVector 24279 ± 908 11756 ± 152 6936 ± 408

Albucore provides significant performance improvements for image processing tasks. Here are some benchmark results comparing Albucore with OpenCV and Numpy:

For more detailed benchmark results, including other configurations and data types, refer to the Benchmark.md in the repository.

License

Distributed under the MIT License. See LICENSE for more information.

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

Uploaded Source

Built Distribution

albucore-0.0.2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: albucore-0.0.2.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.18

File hashes

Hashes for albucore-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5f9ab208797624de3e1da0dde7002ff19468fa54fb18684cd9d169daa64babe0
MD5 288398a5955afcca9c41c1e71f42c04a
BLAKE2b-256 0716a78f38a40bda018c17a240861c1808f5ef9705f289f3ddcd0cd2c06f2c95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: albucore-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.18

File hashes

Hashes for albucore-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7938ca0c6acdbae3db3718d62ff2d171f63c2a1d5a067878d0e4b83033ec3677
MD5 db80cb0934279afe4905347ee5c504c9
BLAKE2b-256 f228b5659a9db71297680758160c0902e52b6ef969a8cb7d5ab21850d4b5f008

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