/vabbat

Video Abstraction by Bounding Box And Trajectory

Primary LanguagePythonMIT LicenseMIT

vabbat

Build Status codecov PyPI version PyPI pyversions

Installation

pip install vabbat

What Does It Do

Traffic video compression using background subtraction and bounding box matching.

See this amazing youtube video demo

steps

result

How to Use

Pip creates command line executable entry point by default

You should be able to run shell command $ vabbat anywhere.

For a demonstration, you can download this test video and run:

  • $ vabbat trafficVideo.mp4 which produces compressed_video.mp4 under current directory

  • $ vabbat trafficVideo.mp4 --mode demo which presents an interactive demonstration

  • $ vabbat -h for more help

in case the command does not work (e.g. on windows when <python_dir>/Scripts is not in system path). Use the package entry:

> python -m vabbat

Limitations

  • The camera should be stationary
  • The video should be a top down view without cars blocking line of sight from other cars.