Skip to main content

Command line program to draw the graph from video and csv files.

Project description

VINSET

Video inset function

This toolbox provides a commandline function that will insert a graph (defined in a CSV file) into a video


Installation requirements and guide

Step 1: Python 3.9

If your base python interpreter is version 3.9, you can skip this step. If not, please create the virtual environment as follow:

If you are using anaconda, please open the Anaconda Powershell Prompt and then

conda create -n your-environment-name python=3.9
conda activate your-environment-name

If not, please

(FOR LINUX/MAC)

install venv

sudo apt-get install python3.9-venv

create virtual my_env_name

python3 -m venv my_env_name

activate virtual my_env_name

source my_env_name/bin/activate

(FOR WINDOWS)

install venv

py -m pip install --user virtualenv

create virtual my_env_name

py -m venv my_env_name

activate virtual my_env_name

.\my_env_name\Scripts\activate

Step 2: Opencv-python

If your base python interpreter is version 3.9,

pip install opencv-python --upgrade

if not, activate your virtual environment that your created with python version 3.9 and

pip install opencv-python --upgrade

Step 3: Installation

pip install vinset -U

User guide

vinset -i input.mp4 [-d gaze.csv] -o output.mp4 -c config.json [-t graph or text] [-tl timeline.json]

-i flag

It is the flag for input video file such as mp4, mov etc. The file type must be video.

-d flag

It is the flag for csv data file to be used as reference data. The file type must be .csv. It must contain the time column in order to synchronize the data and video.
It is mandatory input for vinset to run except user only wants to draw normal texts which are not data and time related.

-o flag

It is the flag for out video file. The file type must be .mp4.

-c flag

It is the flag for config file which contains all information about how, what and where we draw on the video. The file type must be .config or .json.

-t flag

The vinset version 5.0.0 and above does not require this -t flag anymore but it is still acceptable to draw with older version of drawing.
To draw with older version, there are 2 types of overlay.

  1. graph overlay
  2. text overlay

Example usage of graph overlay

vinset -t graph -i input_video.mp4 -o output_video.mp4 -d gaze.csv -c config.json 

Example usage of text overlay

vinset -t text -i input_video.mp4 -o output_video.mp4 -c config.json -tl timeline.json

-tl flag

It is the flag for timeline file to be used with text overlay drawing. The file type must be .json.


Version upgrade guide

To check the version of currently installed

vinset --version

To upgrade the vinset to latest version

pip install vinset --upgrade

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vinset-5.2.0.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

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

vinset-5.2.0-py3-none-any.whl (2.3 MB view details)

Uploaded Python 3

File details

Details for the file vinset-5.2.0.tar.gz.

File metadata

  • Download URL: vinset-5.2.0.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.7

File hashes

Hashes for vinset-5.2.0.tar.gz
Algorithm Hash digest
SHA256 dfdf683713d87c361bd297dea4a3dd00f6f6d4bd7643adec3d30f1750138a2af
MD5 4ea55e5622e4ceef47af2f618e735798
BLAKE2b-256 62fead9044364a6b0b559d09582df8239ceec97426ff63d7cf22f5e2f4c4da8f

See more details on using hashes here.

File details

Details for the file vinset-5.2.0-py3-none-any.whl.

File metadata

  • Download URL: vinset-5.2.0-py3-none-any.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.7

File hashes

Hashes for vinset-5.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 975d35ce162087f085bcc6692e2735830924e450440b283d69113db52876b1fb
MD5 b95a277b4d4415726815b01296d72654
BLAKE2b-256 e267184255155b9a8b19c3abca0b6f819e81876a23c89ae45b01253a0f33500e

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