Coder Social home page Coder Social logo

leapmotion-interface's Introduction

#Calibration

Tool that can be used to calibrate interface between Leap Motion Controller and projector. Result is camera matrix from which can be computed translation from Leap coordinates in world space into projector coordinates in pixels. ##Build

  • compiled into exe using py2exe

##Calibration.py ###Requirements

##Usage Recommended setup hw setup

  • In appliacation you can choose width and height of projector image in pixels.
  • Cycles is how many times you want to run the calibration pattern. Each has 3 * 3 points.
  • Shift changes how far from edges the points are drawn.
  • Head mount optimization toggles the same thing for Leap Motion. It is used because Leap Motion is upside down. https://developer.leapmotion.com/documentation/csharp/api/Leap.Controller.html#id7
  • Calibrate lets you choose file you want the calibration to save in (inputs.txt if you want to use it later in the game)
  • Load loads already saved calibration you choose.
  • Reprojection lets you calculate reprojection error for the chosen calibration.
  • To close calibration window, right click it and chose close.

example video of similar calibration https://youtu.be/l7NUiP3t3F8

#Game Game created in Unity 3D based on https://unity3d.com/learn/tutorials/projects/space-shooter. Controlling is modified to be used with Leap Motion and projector setup as shown on picture. ##Build

  • compiled in Unity 3D

##Source - Unity 3D

###Requirements

  • LeapMotionSpaceGame root folder contains several OpenCV dlls precompiled from opencv-2.4.10 build/x86/vc12/bin. In case of problems delete them and do your own build. You can then put them back into root folder or add path to them into system PATH variable.
  • create inputs.txt with Calibration.py
    • put it in the Assets folder for using it in unity
    • put it in the game_Data to use it with the precompiled game
  • root folder
    • Leap.dll from Leap SDK
    • LeapCSharp.dll from Leap SDK
  • Assets folder

example video https://youtu.be/G3N2fOW8vmU

assets from https://unity3d.com/learn/tutorials/projects/space-shooter

leapmotion-interface's People

Contributors

jojkos avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.