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
andfloat32
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
For detailed benchmark results, including other configurations and data types, refer to the Benchmark in the repository.
License
Distributed under the MIT License. See LICENSE for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file albucore-0.0.12.tar.gz
.
File metadata
- Download URL: albucore-0.0.12.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8b271f8130ef79434803de8fb58245ee8d6b6f846600471146558a98a18ae7d |
|
MD5 | 556b25aa627dfa99d78158815a4d5324 |
|
BLAKE2b-256 | 0c13c702faa43d9cdfe6adc7af25d73c9f351dc936627004326940e6e7d0069c |
File details
Details for the file albucore-0.0.12-py3-none-any.whl
.
File metadata
- Download URL: albucore-0.0.12-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7289c4965915d521295843c1744d792069a6e630e1fafd40c151f1b958b57a48 |
|
MD5 | d0e1b7b9756fbcd5a09b7f0601333508 |
|
BLAKE2b-256 | 9fc46e42a9610a712cc93b04176882a2f4ef9d71fcfe2a050a608eab39f022cd |