Skip to content

ushadow/tabletop_kinect

Repository files navigation

This code is part of the research project for gestural input on a tabletop display. One Microsoft's Kinect is used for tracking hands. The Kinect is placed above the tabletop about 1.2m above. This [picture] (http://people.csail.mit.edu/yingyin/resources/image/tabletop.png) shows the setup. Currently, the code is only tested with this setup. Certain parameters are set based on the assumptions according to this setup, e.g., the distance of the tabletop from the Kinect. A different setup may cause some issues.

Environment

  • Currently developing on Ubuntu 12.04 with Sun Java 7. Tested on Windows 7.

Prerequisites

Install OpenNI framework and the corresponding Kinect driver

  • [OpenNI] (https://github.com/OpenNI/OpenNI) (Version 1.5.4.0 unstable version - May 7th 2012)

  • [SensorKinect] (https://github.com/avin2/SensorKinect) PrimeSense Sensor Module for OpenNI (VVersion 5.1.2.1 unstable version - May 15th 2012) Kinect Mod:

    • Currently tested with unstable branch commit 2d139677f26c06fcd9fc8d4a7db033d70021624b
    • Follow the Linux installation instructions in README
    • Or use the binaries available at http://www.openni.org/Downloads/OpenNIModules.aspx. Choose "OpenNI Compliant Hardward Binaries" and "Unstable".
  • Test that the Kinect driver and OpenNI are installed properly by running the NiViewer which is in Platform/Linux/Bin/x86-Release/ under the OpenNI directory. If you get a "failed to set USB inferface" error, you need to remove the gspca_kinect kernel module by adding the following line to the file /etc/modprobe.d/blacklist.conf.

    blacklist gspcs_kinect  
    

    You need sudo permission to edit that file.

Jar files

Put the following jar files in the lib directory:

Other dependencies:

How to build and run

  • To build all the code, type ant build at the command under the main project directory.
  • The main class for hand tracking is edu.mit.yingyin.tabletop.apps.HandTrackingApp. To run it, type ant HandTrackingApp. The program assumes the config and data directories are under the main project direcotry.
  • For a sample .oni file, you can download it from here, and put it in the data directory. The default configuration for OpenNI is to run from the recording file ./data/sample.oni.
  • The OpenNI config file config.xml in config folder is currently set to run from the actual sensor.
  • For more information, please refer to the wiki page.

About

Hand tracking on a tabletop display using Kinect

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published