GithubHelp home page GithubHelp logo

imclab / leapwebvisualizer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from markmsmith/leapwebvisualizer

0.0 1.0 0.0 1.66 MB

Project to visualize the hand and finger data from the Leap Motion in a web browser

License: MIT License

Python 3.39% HTML 1.86% JavaScript 94.75%

leapwebvisualizer's Introduction

LeapWebVisualizer

Project to visualize the hand and finger data from the Leap Motion in a web browser.

Uses an enhanced version of the Leap -> Python -> WebSockets bridge leapfrog, written by Tyler Williams.

##How to run

  1. Install the Leap Motion SDK, plug in the Leap Motion and run the Leap application (the icon should appear green in the system tray).
  2. Install python
  3. Install PIP (you may have to setup distribute or easy_install first)
  4. Run pip install tornado (http://www.tornadoweb.org/)
  5. Run pip install simplejson (https://github.com/simplejson/simplejson)
  6. Run python websocketserver.py
  7. Open browser to http://localhost:8888

##If you don't have the Leap Motion hardware For step 6, you can playback a file with a recording I made of the frame data by using this command instead:

python websocketserver.py --playback=recording.json

You can also pass the arguments:

--playbackDelay=10 to change how long it waits before playing the recording, to give you time to load up your browswer (the default is 5 seconds).

--loop=True if it should playback the recording in an endless loop (good for playing with the javascript, or for demos.)

##Making recordings If you have a Leap Motion device and want to make your own recordings, you can run the server with this command:

python websocketserver.py --record=myRecording.json

You can also pass the argument --recordingDelay=10 if you want to change how long it waits before starting recording (the default is 5 seconds).

leapwebvisualizer's People

Contributors

markmsmith avatar

Watchers

JT5D 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.