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.7-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file ivutils-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: ivutils-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 9.6 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3d7752d7874f1d12faa38b7d059bc29a9f3a642fd8f7fc62f226e5a0f083655f
MD5 b55ce7fa8c833adb240a66446ae7d1f2
BLAKE2b-256 c7d78021e4a800ad466ad446eb56aaf6f9c0499b1a07acfaac5744de83289924

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