Skip to main content

Python Tools for Visual Dataset Transformation

Project description

PyPI version CI Python 3.7+ License: MIT

VIPY

VIPY: Python Tools for Visual Dataset Transformation
Documentation: https://visym.github.io/vipy

VIPY is a python package for representation, transformation and visualization of annotated videos and images. Annotations are the ground truth provided by labelers for training and testing computer vision systems. VIPY provides tools to easily edit videos and images so that the annotations are transformed along with the pixels. This enables a clean interface for transforming complex datasets for input to your computer vision pipeline.

VIPY provides:

  • Representation of videos with labeled activities that can be resized, clipped, rotated, scaled, padded, cropped and resampled
  • Representation of images with object bounding boxes that can be manipulated as easily as editing an image
  • Clean visualization of annotated images and video
  • Fluent interface for chaining operations on videos and images
  • Lazy loading of images and videos suitable for distributed processing (e.g. dask, spark)
  • Straightforward integration into machine learning toolchains (e.g. torch, numpy)
  • Visual dataset download, unpack and import (e.g. Imagenet21k, Coco 2014, Visual Genome, Open Images V7, Kinetics700, YoutubeBB, ActivityNet, ... )
  • Minimum dependencies for easy installation (e.g. AWS Lambda, Flask)

Requirements

python 3.7+
ffmpeg (required for videos)
numpy, matplotlib, pillow, ffmpeg-python

Installation

pip install vipy

Optional dependencies are installable as a complete package:

pip install pip --upgrade
pip install 'vipy[all]'

You will receive a friendly warning if attempting to use an optional dependency before installation.

Quickstart

import vipy
vipy.image.owl().minsquare().show()
import vipy
vipy.dataset.registry('coco_2014').takeone().show()
v = vipy.dataset.registry('youtubeBB').takeone()
vipy.visualize.montage([im.centersquare().mindim(256).annotate() for t in v.download().trackclip() for im in t.framerate(1)]).show()

The tutorials provide useful examples to help you get started.

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

vipy-1.16.3.tar.gz (304.2 kB view details)

Uploaded Source

Built Distribution

vipy-1.16.3-py3-none-any.whl (333.1 kB view details)

Uploaded Python 3

File details

Details for the file vipy-1.16.3.tar.gz.

File metadata

  • Download URL: vipy-1.16.3.tar.gz
  • Upload date:
  • Size: 304.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for vipy-1.16.3.tar.gz
Algorithm Hash digest
SHA256 ff383ba3ce7d37cd7b4f841d313aaefc5288fb6cf2f0df7728ac3438549b2292
MD5 22ba041fb9017089c3f728302c679404
BLAKE2b-256 7242b678bb1c0d6becfcfbd6907d3b2fb97e5864a566b9f227015c1b15169964

See more details on using hashes here.

File details

Details for the file vipy-1.16.3-py3-none-any.whl.

File metadata

  • Download URL: vipy-1.16.3-py3-none-any.whl
  • Upload date:
  • Size: 333.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for vipy-1.16.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6f37e848e50a295adc4ca8b31aaaf1e803b064fec414f42fba4f6c3440a715b8
MD5 722647d0f59c9e7cdef52b2c8b838394
BLAKE2b-256 47f53486fb19d87335f42c8ad6ce008d7ac7545db35378f14ee0ef241e902a22

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page