3. Le Leap Motion
• Produit de Leap Motion, inc (Ocuspec)
David Holz (NASA) et Michael Buckwald (Apple)
• Dévoilé en 2011 comme un «kinect
abordable»
• Précommande depuis mai 2012
• Livraison en juillet 2013
• Airspace™
• Asus et HP
4. Concurrents
• DUO (http://duo3d.com)
• Projet KickStarter (25/04 : USD 62,5k/110k)
(http://www.kickstarter.com/projects/codelabs/duo-the-worlds-first-diy-3d-sensor)
• DIY
• Avenir incertain
• Kinect
• Windows
• Vision, Mouvement,Vocal, ...
5. Développement
• En béta
• SDK C++
• Python, Java, C#,
Unity (via Swig)
• WebSocket
https://developer.leapmotion.com
~10000 développeurs
7. Principe
• système de coordonnées
cartésiennes fondé sur la
règle de la main droite
• Détection à une distance
comprise entre 25 à 600
mm
• Latence entre 5 et 33 ms
FPS: [200, 30]
26. ruby-leap-motion-ws
class MyLeap < LEAP::Motion::WS
def on_frame(frame)
end
def on_connect
end
def on_disconnect
end
def on_error(message)
end
end
MyLeap.start(true)
27. ruby-leap-motion-ws
class MyLeap < LEAP::Motion::WS
def on_frame(frame)
end
def on_connect
end
def on_disconnect
end
def on_error(message)
end
end
MyLeap.start(true)
LEAP::Motion::WS::Frame
hands
# => [LEAP::Motion::WS::Hand]
gestures
# => [LEAP::Motion::WS::Gesture]
pointables
# => [LEAP::Motion::WS::Pointable]
28. ruby-leap-motion
• Utilise le SDK C++ (SWIG)
• https://github.com/glejeune/ruby-leap-motion
• Aucune dépendance
• WIP !!! WIP !!! WIP !!!
29. ruby-leap-motion
class MyListener < Leap::Motion::Listener
def on_init(controller)
end
def on_exit(controller)
end
def on_connect(controller)
end
def on_disconnect(controller)
end
def on_frame(controller)
end
def on_focus_lost(controller)
end
def on_focus_gained(controller)
end
end