Skip to main content

CUDA-accelerated image augmentation operations for Python.

Project description

cuimgops

CUDA-accelerated image augmentation operations for Python.

Features

  • Augmentation

    • Horizontal Flip
    • Vertical Flip
  • Convolution

    • Gaussian Noise
    • Edge Detection
    • Blur (Smoothing)
    • Sharpening
  • In Development

    • Multiple images - Batched convolution on streams

Installation

Prerequisites

  • CUDA Capable GPU
  • NVIDIA drivers matching your CUDA version
  • CUDA Toolkit (nvcc) installed and added to PATH
  • Python 3.8+ & pip

Install from PyPI

pip install cuimgops

Usage

from cuimgops import *
from PIL import Image

img = Image.open("image.jpg")

flipped = get_horizontal_flip(img)
noisy = get_gaussian_noise(img, mean=0.0, stddev=15.0)
edges = get_edge_detection(img)
blurred = get_blur(img)
sharpened = get_sharpening(img)

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

cuimgops-0.1.5.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file cuimgops-0.1.5.tar.gz.

File metadata

  • Download URL: cuimgops-0.1.5.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for cuimgops-0.1.5.tar.gz
Algorithm Hash digest
SHA256 7a75a8386a386ba84e5e3be95c71202878be08948a3b698fb3a46e1d059eaba9
MD5 260613946564dc4f30ff82ba1e07589a
BLAKE2b-256 a8d2e2e7b0c35da01dc216866eb5520afe549d552a519d7dff5bba5b4264c3b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page