Git Product home page Git Product logo

kinectv2-osc's Introduction

KinectV2OSC

Broadcasts KinectV2 skeletal data over OSC. That's it.

A Kinect V2 sensor

Handy if you want to quickly get skeleton data off of Windows and onto Mac, or into some other Windows app.

Just run the app

If you just want to run the app without digging into the code, you can simply follow these instructions:

  • Note that you need Windows 8.1, a USB3 port, and a new V2 Kinect sensor
  • Download and install the Kinect for Windows SDK 2.0
  • Download the release executable and run it. You should see a screen like this:

Screenshot of KinectV2OSC in action

  • By default, the executable broadcasts to port 12345 on IP address 127.0.0.1
  • To broadcast elsewhere, create a file named ip.txt in the same folder as the executable. Give the file a comma-separated list of IP asddresses to broadcast to, i.e.
127.0.0.1,192.168.1.100,192.168.1.112
  • Re-launch the executable

Compile from source

If you want to be able to change the port number, or edit the code, you will need to compile from source. Follow these instructions:

  • Note that you need Windows 8.1, a USB3 port, and a new V2 Kinect sensor
  • Download and install the Kinect for Windows SDK 2.0
  • Install Visual Studio (I am using Visual Studio Express 2013 for Windows Desktop - scroll down to find the download link)
  • MAKE SURE you are using Visual Studio Express for Windows Desktop - you have to scroll down to find that link!!
  • Clone this repo, and open KinectV2OSC.sln in Visual Studio. Hit the green 'Start' button. You should see a screen like this:

Screenshot of KinectV2OSC in action

  • To send to another destination, change the IP and port number here, and then re-launch:

How to configure IP and port number

You can enter a single IP Address or multiple, separated by commas.

What OSC messages get sent?

OSC messages are sent every frame. For each detected body, you will get a set of joints:

Address: /bodies/{bodyId}/joints/{jointId}
Values: - float:  positionX
        - float:  positionY
        - float:  positionZ
        - string: trackingState (Tracked, NotTracked or Inferred)

...and a pair of hands:

Address: /bodies/{bodyId}/hands/{handId} (Left or Right)
Values: - string: handState (Open, Closed, NotTracked, Unknown)
        - string: handConfidence (High, Low)

Project dependencies

  • Rug OSC to format and send messages

kinectv2-osc's People

Contributors

microcosm avatar

Watchers

Mike Baumgart 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.