Posted on

使用NodeJS实现LeapMotion互动

http://leapmotion.com/setup
暂不支持性能有限的树莓派

var webSocket = require('ws'),
ws = new webSocket('ws://127.0.0.1:6437');
ws.on('message', function(data, flags) {
var frame = JSON.parse(data);
console.log(frame);
if (frame.hands & frame.hands.length>0) {

}else {

}
});
Print Friendly, PDF & Email
发表评论

电子邮件地址不会被公开。 必填项已用*标注

This site uses Akismet to reduce spam. Learn how your comment data is processed.