Skip to main content

Image manipulation on steroids

Project description

framawarp

Description

framawarp is a Python library designed to simplify image manipulation tasks in computer vision projects. It provides a unified interface for wrapping NumPy arrays and PyTorch tensors, making it easy to work with images and perform operations such as color space conversions.

Installation

To install framawarp, run the following command:

pip install framawarp

Usage

Creating a Frame

You can create a Frame object by wrapping a NumPy array or a PyTorch tensor:

import numpy as np
from framawarp import Frame

image = np.random.rand(256, 256, 3)  # Example NumPy array
frame = Frame(image)

Manipulating Color Spaces

framawarp makes it easy to convert between different color spaces:

from framawarp import FrameColorSpace

# Convert from RGB to BGR
frame_bgr = frame.cast_color_space(FrameColorSpace.BGR)

# Convert from RGB to HSV with new frame
frame_hsv = frame.cast_color_space(FrameColorSpace.HSV, inplace=False)

Contributing

While we are not actively seeking contributions at the moment, we are always open to suggestions and improvements. Feel free to fork the repository and submit pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

If you have any questions or suggestions, please feel free to reach out to the maintainer.

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

framawarp-0.1.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

framawarp-0.1.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file framawarp-0.1.2.tar.gz.

File metadata

  • Download URL: framawarp-0.1.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.9.3 CPython/3.11.6

File hashes

Hashes for framawarp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9abb76324aaa1a4a40f33975d101037688bc08e040f04b0b76ca898b87cfaea9
MD5 6e08436dbff3bc80ada7c47649fb5f54
BLAKE2b-256 385d1bc9d0661613603dad8a10a93a7a5dc47079ceeb6d644ff6be89f38305e2

See more details on using hashes here.

File details

Details for the file framawarp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: framawarp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.9.3 CPython/3.11.6

File hashes

Hashes for framawarp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 eed6de7982de2a1f2df78e507c62bc506f8cd7b58fdadef84df4002cf045624b
MD5 40d879d139d49b02cc2ba4bbd39f4ded
BLAKE2b-256 c97b462755d4da616d25e0f2f10983d40f56df937c6bf9a6c8541062cc499f37

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