Leap Motion is a relatively low-cost consumer device that provides infrared tracking of a user's hands and fingers in space. The product debuted as an interface for desktop/laptop applications, but its focus has shifted to providing hand data for virtual reality systems.
Leap offers software developer kits, or code libraries that developers can use to interface with their own software, for a variety of programming languages. In this tutorial set, you will use Leap Motion to re-create a clinical test for measuring hand tremor. Please refer to the full tutorial articles here.
For the first two parts of the tutorial, you will only need:
- Web browser (Chrome, Safari, or Firefox)
- Text editor (recommend SublimeText3 or Atom.io.
- Software Libraries
- jQuery (documentation)
- jCanvas (documentation)
Part 3 introduces the LeapMotion controller, an infrared device that tracks hand and finger position in 3D space. You can purchase it here.
In this tutorial, you will:
- setup an HTML5 canvas
- track mouse cursor position with javascript
- analyze user performance drawing a straight line
This tutorial expands on Part 1. Instead of tracing a straight line, the user will trace an Archimedes spiral. Spiral tracing has been shown to be a valid method for quantifying essential tremors and Parkinsonian tremor (Memedi et al 2015, Saunders-Pullman et al 2008).
- setup an HTML5 canvas and track mouse cursor position
- create the Archimedes spiral guide tracing
- analyze tracing speed and accuracy
In this third part, we will use LeapMotion, to draw lines and spirals in the air.
- setup LeapMotion controller in Javascript
- monitor finger position instead of mouse cursor
- analyze tracing speed and accuracy