Home

Awesome

CVRL FORTH HandTracker

Description

This script uses the Model Based Vision (MBV) libraries created by the Computer Vision and Robotics Lab at ICS/FORTH. The libraries are free for academic and non-profit use under this licence.

It implements a hand tracker pipeline described first in Oikonomidis et al: Efficient model-based 3D tracking of hand articulations using Kinect.

The software tracks the 3D position, orientation and full articulation of a human hand from markerless visual observations. The developed method:

<a href="http://www.youtube.com/watch?feature=player_embedded&v=Fxa43qcm1C4" target="_blank"><img src="http://img.youtube.com/vi/Fxa43qcm1C4/0.jpg" alt="Single hand tracking" width="320" height="240" border="10"/></a>

Citation

If you use any part of this work please cite the following:

Oikonomidis, Iason, Nikolaos Kyriazis, and Antonis A. Argyros. "Efficient model-based 3D tracking of hand articulations using Kinect." BMVC. Vol. 1. No. 2. 2011.

@inproceedings{oikonomidis2011efficient,
  title={Efficient model-based 3D tracking of hand articulations using Kinect.},
  author={Oikonomidis, Iason and Kyriazis, Nikolaos and Argyros, Antonis A},
  booktitle={BMVC},
  volume={1},
  number={2},
  pages={3},
  year={2011}
}

Notice: The citation targets are subject to change. Please make sure to use the latest information provided.

Hardware Requirements

System requirements:

Download links

<a name="download"></a>

Windows Dependencies

Installation and usage

As a first step, download the package that matches your OS from the download section. Extract the downloaded package to a location and set an environment variable named <tt>MBV_LIBS</tt> to point to this location. For example, if the package is extracted to the path <tt>c:\Users\User\Documents\FORTH\HANDTRACKER</tt> (Windows) or <tt>/home/user/FORTH/HANDTRACKER</tt> (Ubuntu), do the following from the command line:

Ubuntu:

export MBV_LIBS=/home/user/FORTH/HANDTRACKER

Windows:

set MBV_LIBS=c:\Users\User\Documents\FORTH\HANDTRACKER

The provided package has some external dependencies, listed below. One such dependency is a working Python 2.7 environment.

Notice: Make sure the Python version is 2.7 64bit.

Notice: Binaries were build against CUDA 7.5. This might require the user to update the GPU driver to the latest version. In the lack of a supported driver, an error message of the form "CUDA driver version is insufficient for CUDA runtime version" is issued.

Ubuntu

Install opencv, thread building blocks (TBB) python and numpy by executing the following in the command line:

sudo apt-get install libopencv-dev libtbb2 python-numpy python-opencv

If you plan to use openni1.x (required for running some of the example scripts), also execute:

sudo apt-get install libopenni0 libopenni-sensor-primesense0 

Make sure that you have nvidia driver 352 or newer installed. Use the "Additional Drivers" tool to select the correct driver version.

Windows

OpenCV is statically built with the provided binaries. Thread building blocks is bundled with the downloadable package. The rest of the dependencies should be downloaded from the download section. For python support it is suggested to use [anaconda] (https://www.continuum.io/downloads). After installing Anaconda, the installation of numpy is a simple as executing the following in the command line:

conda install numpy

Notice: Binaries were built against numpy 1.10.1. If a numpy related error (import or other) is issued, updating numpy to this version will be required. In Anaconda it would suffice to execute the following, from the command line:

conda update numpy

Usage

Make sure the current working directory is the root of HandTracker and that <tt>MBV_LIBS</tt> is set.

Run the runme.sh (Ubuntu) or runme.bat (Windows) script to test the hand tracker. Press s to stop/start 3D hand tracking.

Notice: Be aware that the first execution will take a significant amount of time, CPU and memory. This is due to the intermediate CUDA code being compiled. This will only happen once, as the compilation result is cached. In Ubuntu the cache limit might be too restricting and in these cases caching will fail, leading to recompilation at every execution. To remedy this the size can be increased as follows (command line):

export CUDA_CACHE_MAXSIZE=2147483648

Contact

For questions, comments and any kind of feedback please use the github issues, and the wiki.