Skip to main content

Shot Boundary Detection Package

Project description

Plugin package: Shot Boundary Detection

This package includes all methods to detect and split a given video into the basic shots. (currently focused on Abrupt Transitions).

Package Description

PDF format: vhh_sbd_pdf

HTML format (only usable if repository is available in local storage): vhh_sbd_html

Quick Setup

Requirements:

  • Ubuntu 18.04 LTS (also tested on Windows 10)
  • python version 3.6.x

0 Environment Setup (optional)

Create a virtual environment:

  • create a folder to a specified path (e.g. /xxx/vhh_sbd/)
  • python3 -m venv /xxx/vhh_sbd/

Activate the environment:

  • source /xxx/vhh_sbd/bin/activate

1A Install using Pip

The VHH Shot Boundary Detection package is available on PyPI and can be installed via pip.

  • Update pip and setuptools (tested using pip==20.2.3 and setuptools==50.3.0)
  • pip install vhh-sbd

Alternatively, you can also build the package from source.

1B Install by building from Source

Checkout vhh_sbd repository to a specified folder:

  • git clone https://github.com/dahe-cvl/vhh_sbd

Install the sbd package and all dependencies:

  • Update pip and setuptools (tested using pip==20.2.3 and setuptools==50.3.0)
  • Install the wheel package: pip install wheel
  • change to the root directory of the repository (includes setup.py)
  • python setup.py bdist_wheel
  • The aforementioned command should create a /dist directory containing a wheel. Install the package using python -m pip install dist/xxx.whl

NOTE: You can check the success of the installation by using the command pip list. This command should give you a list with all installed python packages and it should include vhh-sbd.

2 Install PyTorch

Install a Version of PyTorch depending on your setup. Consult the PyTorch website for detailed instructions.

3 Setup environment variables (optional)

  • source /data/dhelm/python_virtenv/vhh_sbd_env/bin/activate
  • export CUDA_VISIBLE_DEVICES=1
  • export PYTHONPATH=$PYTHONPATH:/XXX/vhh_sbd/:/XXX/vhh_sbd/Develop/:/XXX/vhh_sbd/Demo/

4 Run demo script (optional)

  • change to root directory of the repository
  • python Demo/vhh_sbd_run_on_single_video.py

NOTE: Do not forget to change paths in demo script!

Release Generation

  • Create and checkout release branch: (e.g. v1.1.0): git checkout -b v1.1.0
  • Update version number in setup.py
  • Update Sphinx documentation and release version
  • Make sure that pip and setuptools are up to date
  • Install wheel and twine
  • Build Source Archive and Built Distribution using python setup.py sdist bdist_wheel
  • Upload package to PyPI using twine upload dist/*

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

vhh_sbd-1.2.1.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

vhh_sbd-1.2.1-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

Details for the file vhh_sbd-1.2.1.tar.gz.

File metadata

  • Download URL: vhh_sbd-1.2.1.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.6.9

File hashes

Hashes for vhh_sbd-1.2.1.tar.gz
Algorithm Hash digest
SHA256 1fee5751a5b153224a9bc8c0b4d011830b339fd5f71f970179d70f0e84a45741
MD5 959bf3b76520400831d245825dca65c6
BLAKE2b-256 f80e137dc020c654fff6633254ebdc593a078a9f4f1c32ec149b4f9ae634bf43

See more details on using hashes here.

File details

Details for the file vhh_sbd-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: vhh_sbd-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 36.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.6.9

File hashes

Hashes for vhh_sbd-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f4e674908f6fc27bf608974da3a1a5ae5a828ffd2f072cdea3acd7e5396d3e9
MD5 e2c7efa5d7eeb84fc3aaa29bfb78312c
BLAKE2b-256 ef39106df0a2db667ae15be7777d157d131937c5b899399e5691bcd077730fde

See more details on using hashes here.

Supported by

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