WebSocketing the Kinect

News

Extraordinary Robot
Robot
Peter Daukintis, Microsoft Technical Evangelist, fills in a Kinect for Windows v2 sample gap, providing a means to connect to a Kinect web WebSockets and thereby a web browser...

Kinect 4 Windows V2 – in the browser


For the older Kinect v1.0 there was a sample included with the Kinect SDK which provided browser compatibility. The general idea is that the Kinect SDK can be used to retrieve the various Kinect data streams i.e., the RGB stream, body tracking data, etc. and from within a console or desktop app a webserver serves up that data for consumption over localhost by a web app running in the browser. This opens up compatibility with various javascript frameworks such as Babylon.js (another option might be to run inside a Windows Store javascript app). The official sample is pretty comprehensive so I thought it might be useful to have something simpler to hand. Anyway, after a bit of searching around I found a few examples for v1.0 but nothing with v2.0 support so I decided to hack one together. This might come in handy at the London Kinect Hackathon on 21st and 22nd March REGISTER here.

I used SuperWebSocket from within a .NET console app to retrieve the Kinect data and broadcast it to any connected web sockets. The socket server code is simple

...



Project Information URL: http://peted.azurewebsites.net/kinect-4-windows-v2-in-the-browser/

Project Source URL: https://github.com/peted70/kinectv2-webserver

Here's some of the other posts from Peter we've highlighted recently;


Contact Information:


Follow @CH9
Follow @Coding4Fun
Follow @KinectWindows
Follow @gduncan411

njs.gif


Continue reading...
 
Back
Top