Coder Social home page Coder Social logo

liu824 / handtracker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from forth-modelbasedtracker/handtracker

0.0 1.0 0.0 26.52 MB

3D Hand Tracking using input from a depth sensor.

Home Page: http://cvrlcode.ics.forth.gr/handtracking/

License: Other

Batchfile 1.56% Shell 1.78% Python 96.66%

handtracker's Introduction

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:

  • estimates the full articulation of a hand (26 DoFs redundantly encoded in 27 parameters) involved in unconstrained motion
  • operates on input acquired by easy-to-install and widely used/supported RGB-D cameras (e.g. Kinect, Xtion)
  • does not require markers, special gloves
  • performs at a rate of 30fps in modern architectures (GPU acceleration)
  • does not require calibration
  • does not rely on any proprietary built-in tracking technologies (Nite, OpenNI, Kinect SDK)

Single hand tracking

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:

  • Hardware
    • Multi-core Intel CPU
    • 1 GB of RAM or more
    • CUDA-enabled GPU
      • 512MB GPU RAM or more
      • CUDA compute capability > 1.0
      • OpenGL 3.3
  • Software
    • OS
      • 64bit Windows 8 or newer
      • 64bit Ubuntu 14.04 Linux
    • Environment
      • Python 2.7 64bit
    • Drivers

Download links

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 MBV_LIBS to point to this location. For example, if the package is extracted to the path c:\Users\User\Documents\FORTH\HANDTRACKER (Windows) or /home/user/FORTH/HANDTRACKER (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 MBV_LIBS 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.

handtracker's People

Contributors

nkyriazis avatar padeler avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.