Python + Leap Motion
Intro to Leap Motion APIs in Python
IxDesigner, Edlab, Columbia University
Jo Chasinga
@jochasinga
@Edlab
“Edtech for learning interactions”
● Web / mobile apps
● Physical computing
● VR
What is Leap?
What is Leap?
● Optical sensors
● Infrared
● 25-600 mm above
● 150 degree
What is Leap?
● Hands
● Fingers, tools
● Bones
● Gestures
Toward NUI
Python SWIG
Leap(C)
Parent Class
helloleap.pystructure
Next steps
● Replace Listener with other event loop
● Hook up server -> frontend (D3.js, Three.js)
● Hook up GUI (Tkinter, iPython, PyQt)
● Hook up Game Engine, VR (Unity, Unreal)
Thank you
“Kob kun krub”
Questions?

Leap Motion Python API

Editor's Notes

  • #5 The Leap Motion Controller is sleek, light, and tiny (it’s just 3" long). It takes up hardly any space on your desk, but you use the space above it.
  • #11 Tracking APIs model
  • #12 Getting started Download SDK Extract python lib setup structure import lib
  • #13 Listener = event-based mechanism separate threads for each event Inherit base Listener / override methods
  • #14 Get gesture loop through each frame’s gesture track pointable (base class of fingers) direction != STATE_START : not just happened (there’s a frame before) query for previous frame