screenful-gestures

Created: 2014-05-19 07:47
Updated: 2014-09-04 10:54
License: mit

README.md

Screenful gesture project

Enables natural user interaction for the Screenful dashboard software. The user can change the active slide and get more detail by making simple hand gestures.

Implemented using OpenNI 2.2 and NiTE 2.2 for 64-bit Linux. Content of this repository is MIT licensed.

High-level overview

Hardware
  • Xtion Pro depth sensor
  • 64-bit Linux computer
    • There is no NiTE 2.x for the ARM architecture
Main software component breakdown
  • Client side:
  • Server side:
    • Java Service Wrapper
      • Used to daemonize the server and handle JVM crashes and other problems that seem to arise with JNI and NiTE
    • server.conf contains server settings
    • libpaths.conf allows to specify an optional path to OpenNI/NiTE libraries
  • Internals:
    • GestureServer
      • Main server program, listens for WebSocket connections
      • Spawned by the service wrapper
      • Initializes the tracker
      • Detected gestures are sent to browsers connected via WebSocket
    • NiTETracker
      • Main tracker object, keeps track of hands and skeletons in the scene and listeners can attach to it
      • As a listener to NiTE user and hand tracker classes, receives hand and user tracker frames as they're processed by the library
      • Manages the sensor and attempts to detect and handle USB disconnects
    • Gesture
      • Defines a gesture using a user-defined Detector. A gesture is defined to be great enough movement of the hand that satisfies the condition checked by the Detector for a period of frames
      • In the GestureServer, a DirectionDetector is used for frame comparison, allowing for sensitivity adjustable left/right/up/down/in/out gestures
    • DirectionDetector
      • Uses NiTETracker to supply hand tracker frames and compares the relative movement of two consecutive frames to determine which direction the hand is currently moving
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more