The main goal of this experiment is to track the movement of multiple objects from an input video.
The original experiment is available here. Users first select an object in the input video, and then they press either the space or the enter key so that the program can automatically track the movement of this object as the video plays.
To run this experiment without ReproZip, you will first need to install OpenCV 2.4.9.1 and the following requirements:
Then, run the following script:
$ python multipleObjectTracking.py
The ReproZip package is available here (52 MB).
You can reproduce the application as follows:
$ reprounzip vagrant setup --use-gui object-tracking.rpz object-tracking/
$ reprounzip vagrant run object-tracking/
If you have a local X server (for example, if you are using Linux, or have installed xquartz for Mac or Xming for Windows), you can use that instead of the VM's display via the following commands (note that rendering might be a bit slower):
$ reprounzip docker setup object-tracking.rpz object-tracking/
$ reprounzip docker run --enable-x11 object-tracking/
More information on packing and unpacking graphical applications can be found here.
If you are using our demo VM image, first, make sure you uncomment the v.gui = true
line in the Vagrantfile before running vagrant up
. Log in to the machine (username: vagrant
, password: vagrant
) and run the following:
$ startxfce4
Then, open the Terminal and run:
$ vagrant ssh
$ workon object-tracking
$ cd reprozip-examples/object-tracking/
$ python multipleObjectTracking.py