Skip to main content

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

ivutils-0.0.5-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

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

Hashes for ivutils-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 595a0cd48b0744652e170da836c4583f0484d24a48f0d73775da7c7969f7fe55
MD5 a0c24c318f8c6af83bea4182b8110417
BLAKE2b-256 8d8bdaab2cca277d5b18a414f78e61acbf0e28d02fae1ca1ca64d62939d8e603

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