Image and video utils...
Project description
Image & Video Utils
This repository provides a Python module for interacting with image and video files using sensible defaults and clear, consistent interfaces.
✨ Features
- An
ImageResolutionclass to represent the resolution of images or video frames. - A
reshapefunction to resize images easily. - A
VideoMetadataclass to read video information such as the number of frames, frame rate, or codec. - Multiple functions to read and write videos as NumPy arrays, image files, or video files.
- A simple CLI to extract frames or encode videos.
📦 Installation
The module
You can install image_video_utils directly from source using pip:
pip install git+https://gitlab.inria.fr/nmaignan/image-video-utils.git
You can also use another Python package manager such as uv:
uv add git+https://gitlab.inria.fr/nmaignan/image-video-utils.git
The CLI
You can install the CLI tool with pipx or uv:
uv tool install git+https://gitlab.inria.fr/nmaignan/image-video-utils
🧪 Usage
The module
Import the required utilities in your Python code:
from image_video_utils.video import write_video_from_iterable
The CLI
The CLI is available via:
ivutils --help
📚 Documentation
The documentation is generated using pdoc and is available as a GitLab Page.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file image_video_utils-1.0.0.tar.gz.
File metadata
- Download URL: image_video_utils-1.0.0.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93bd44b41019412fb6a0d979ccc661da55fffa69dd9fabdeb0801312dd9b5ee3
|
|
| MD5 |
71b56150e53ada4154eeda83c5d6e7c1
|
|
| BLAKE2b-256 |
8a58b5350cdd6851b7a0d81bb37db7b30ca6ececb00140a8b5083687988e793b
|
File details
Details for the file image_video_utils-1.0.0-py3-none-any.whl.
File metadata
- Download URL: image_video_utils-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bf6c9a4077ffbbd41606d84caad95876dc4eaa1be58bee5911288d06d7ef798
|
|
| MD5 |
ef7fc96575f475ea07914c863a642f89
|
|
| BLAKE2b-256 |
a0786101f2adac98aacdfd0c8936557aed128177659e5d33f16fdf9cfcd45cde
|