0.3.1 • Published 11 years ago

openni v0.3.1

Weekly downloads
80
License
-
Repository
-
Last release
11 years ago

node-openni

OpenNI bindings in Node.js.

Currently only supports one user, even though several users is easy to achieve with some small mods.

Install

Test

Fork this repo.

Plug in your kinect.

Run:

$ cd node-openni
$ node test/base

Stay in the surrender position in front of the camera, 1 couple of meters away. After you're synced you should see

Use

var OpenNI = require('openni');

var context = OpenNI();

[
  "head",
  "neck",
  "torso",
  "waist",
  "left_collar",
  "left_shoulder",
  "left_elbow",
  "left_wrist",
  "left_hand",
  "left_fingertip",
  "right_collar",
  "right_shoulder",
  "right_elbow",
  "right_wrist",
  "right_hand",
  "right_fingertip",
  "left_hip",
  "left_knee",
  "left_ankle",
  "left_foot",
  "right_hip",
  "right_knee",
  "right_ankle",
  "right_foot"
].forEach(function(jointName) {
  
  context.on(jointName, function(x, y, z) {
    cconsole.log(jointName + ' moved to (%d, %d, %d)', x, y, z);
  });

});

// Close the context to exit

process.on('SIGINT', function() {
  context.close();
  process.exit();  
});
0.3.1

11 years ago

0.3.0

11 years ago

0.2.8

11 years ago

0.2.7

11 years ago

0.2.6

11 years ago

0.2.5

11 years ago

0.2.3

11 years ago

0.2.2

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago