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)
frame = Frame(image)
Manipulating Color Spaces
framawarp makes it easy to convert between different color spaces:
from framawarp import FrameColorSpace
frame_bgr = frame.cast_color_space(FrameColorSpace.BGR)
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.