Using the example webpages - glastonbridge/art-of-computer-science GitHub Wiki

In the KinectJSON folder there is a subfolder WebTests. In there are two files.

  • testcanvas.html - a simple dancing joint visualiser
  • slurp.html - slurp a bunch of frames at once into a JSON array (live recording)

In both cases, once your KinectServer is running you may need to modify it to point at the URL that you are running it from. In the case of testcanvas this means editing the value "jsonEndpointAddress" so that the part before ?callback=? is the same as the argument that you passed to KinectServer. In the case of slurp, this means the "action=" field must be updated.

Note that the ?callback=? part is required for the testcanvas page but not for slurp, this is because the testcanvas.html page makes use of JSONP.

Okay, let's assume that you've done all that...

testcanvas.html

Running this page while KinectServer is running in the background, you should see a big black canvas on the screen. When you move in front of the Kinect, assuming it recognises you, it should draw your joints as white rectangles.

slurp.html

Type in how many frames you want and click Submit. It will then start recording JSON for the specified number of consecutive frames. This is like a sort of video, but more obtuse.