No project description provided
Project description
ivutils
A set of functions to automate common image / video processing tasks for Machine learning projects.
This package is a lightweight wrapper over the opencv package. You can import the package into your python project to call the functions or call them directly from the ivutils CLI tool.
Modules
- vid - contains a list of video transformation functions
- img - contains a list of image transformation functions
Command Line Interface (CLI) tool
To use the CLI tool supports following syntax
ivutils {module} {command} {...args}
To see all available options, run the following command:
>ivutils vid transform -h
usage: ivutils vid transform [-h] -s SOURCE -t TARGET [-sf START_FRAME] [-ef END_FRAME] [-st START_TIME] [-et END_TIME]
[-fi FRAME_INTERVAL] [--resize_step RESIZE_STEP] [--crop_step CROP_STEP]
options:
-h, --help show this help message and exit
-s, --source SOURCE Path to the source image file
-t, --target TARGET Path to save the resized image
-sf, --start_frame START_FRAME
-ef, --end_frame END_FRAME
-st, --start_time START_TIME
-et, --end_time END_TIME
-fi, --frame_interval FRAME_INTERVAL
--resize_step RESIZE_STEP
Optional: format [width]x[height]
--crop_step CROP_STEP
Optional: format [top]x[bottom]x[left]x[right]
The following command with open the source video, starting from 00:25 to 01:50 timeframe, crop the bounding box then resize it to 640x480 and create a new video file called target.mp4
ivutils vid transform -s "source.mp4" -t "target.mp4" -st "0:25" -et "1:50" --resize_step 640x480 --crop_step 100x200x100x200
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 ivutils-0.0.5-py3-none-any.whl.
File metadata
- Download URL: ivutils-0.0.5-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
595a0cd48b0744652e170da836c4583f0484d24a48f0d73775da7c7969f7fe55
|
|
| MD5 |
a0c24c318f8c6af83bea4182b8110417
|
|
| BLAKE2b-256 |
8d8bdaab2cca277d5b18a414f78e61acbf0e28d02fae1ca1ca64d62939d8e603
|