Camera Movements Classification Package
Project description
Plugin package: Camera Movements Classification
This package includes all methods to classify a given shot/or image sequence in one of the categories Pan, Tilt or NA.
Package Description
PDF format: vhh_cmc_pdf
HTML format (only usable if repository is available in local storage): vhh_cmc_html
Quick Setup
Requirements:
- Ubuntu 18.04 LTS
- python version 3.6.x
0 Environment Setup (optional)
Create a virtual environment:
- create a folder to a specified path (e.g. /xxx/vhh_cmc/)
- python3 -m venv /xxx/vhh_cmc/
Activate the environment:
- source /xxx/vhh_cmc/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-cmc
Alternatively, you can also build the package from source.
1B Install by building from Source
Checkout vhh_cmc repository to a specified folder:
- git clone https://github.com/dahe-cvl/vhh_cmc
Install the cmc package and all dependencies:
- Update
pip
andsetuptools
(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 commend pip list. This command should give you a list with all installed python packages and it should include vhh-cmc.
2 Setup environment variables (optional)
- source /data/dhelm/python_virtenv/vhh_sbd_env/bin/activate
- export CUDA_VISIBLE_DEVICES=0
- export PYTHONPATH=$PYTHONPATH:/XXX/vhh_cmc/:/XXX/vhh_cmc/Develop/:/XXX/vhh_cmc/Demo/
3 Run demo script (optional)
- change to root directory of the repository
- python Demo/vhh_cmc_run_on_single_video.py
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
andsetuptools
are up to date - Install
wheel
andtwine
- Build Source Archive and Built Distribution using
python setup.py sdist bdist_wheel
- Upload package to PyPI using
twine upload dist/*
Evaluation & Results
Experiment: "../cmc_eval_20210614/vhhmmsi_eval_db_part4/vhhmmsi_eval_db_2"
parameters | values |
---|---|
mvi_mv_ratio | 0.2 |
threshold_significance | 2.0 |
threshold_consistency | 2.3 |
mvi_window_size | 10 |
region_window_size | 5 |
precision | recall | f1-score | accuracy | |
---|---|---|---|---|
exp02 | 0.7293 | 0.7244 | 0.7181 | 0.7093 |
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
Built Distribution
File details
Details for the file vhh_cmc-1.4.0.tar.gz
.
File metadata
- Download URL: vhh_cmc-1.4.0.tar.gz
- Upload date:
- Size: 36.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57b6ee57348a9bd408a2733e96b5b1396aef6287d9b1d6d5989d5ab95993d24f |
|
MD5 | 43f2245d4009e41731bc3fd5a734499d |
|
BLAKE2b-256 | 94f43d5580c897c2ad39fa76eb86728a8f8f28bc4d3b011cea51cac736295615 |
File details
Details for the file vhh_cmc-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: vhh_cmc-1.4.0-py3-none-any.whl
- Upload date:
- Size: 39.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2e387fffaa3f2e5deefda6de8408f54f86c0e1f1051ecc2b30664500b0dac77 |
|
MD5 | f654645eab2de42176050dac0c84307f |
|
BLAKE2b-256 | 0216264ca219746a376431b6c07230b20bba5c0d67f74bcfcc636e648eb68bec |