Giter Club home page Giter Club logo

kinect2's Introduction

Kinect2 Library for Node / Electron

npm npm Donate

This library enables you to use the Kinect v2 in your nodejs or electron apps.

screenshot of multi stream demo

Features:

  • get rgb camera feed
  • get depth feed
  • get ir feed
  • point cloud (greyscale and colored)
  • get skeleton joints (2d and 3d)
  • user masking

Check out my kinect-azure library for the Azure Kinect sensor.

Installation

You will need to install the official Kinect 2 SDK before you can use this module.

Just npm install like you would do with any regular module.

$ npm install kinect2

Examples

There are nodejs and electron examples in the examples/ folder of this repo. To run them, execute npm install and npm start:

$ cd examples/electron
$ npm install
$ npm start

The electron examples have the javascript code inside the html files. You can find these html files in examples/electron/renderer/demos.

Donate

Like this library? Always welcome to buy me a beer 🍺

Donate

kinect2's People

Contributors

dependabot[bot] avatar nikolakanacki avatar wouterverweirder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kinect2's Issues

I cannot close the data stream

In my project i can´t seem to get the stream to close. The .close() or .closeColorReader() functions don´t seem to work for me. Could this be my fault or could it be a bug in the library? Has anyone else encountered a problem with closing a stream?

Any help is much appreciated.

Unhandled Exception: System.AccessViolationException

Not my day apparently. Upon retesting the color feed browser again on the PB where it WAS working, I am now getting a memory related error!. Just in case I ran a FULL memory diagnostics to make sure it is not hardware related. This error only occurs when the Kinect2 sensor is connected. I also ran some MS Kinect demos to ensure the sensor is working and supplying a camera feed. I really don't know how to proceed...any advice welcome!

F:\01_Work_in_Progress\myapp\examples\color-feed-browser>node index
Server listening on port 8000
Point your browser to http://localhost:8000
[Kinect2] Created NodeKinect Instance
[Kinect2] Open
[Kinect2] OpenColorReader
[Kinect2] color: 1920x1080

Unhandled Exception: System.AccessViolationException: Attempted to read or write
protected memory. This is often an indication that other memory is corrupt.
at v8.Function.Call(Function* , Localv8::Value* , Handlev8::Object , Int3
2 , Handlev8::Value* )
at NodejsFuncInvokeContext.CallFuncOnV8Thread()
at clrActionContext.ActionCallback(Void* data)
at continueOnV8Thread(uv_async_s* handle, Int32 status)

examples_cant run

i am trying to run kinect2 examples--using Windows 10, loaded the Kinect v2 SDK and node(v6.9.5) --(basic "usage" runs ok, these issues are in browser)getting this error:
thanks..
_Error: Cannot find module 'express'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (C:\Windows\System32\node_modules\kinect2\examples\depth-feed-browser\index.js:2:12)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module.load (module.js:438:3)
npm WARN [email protected] No repository field.
C:\Windows\System32\node_modules\kinect2\examples\depth-feed-browser>

specify which bodies to track pixels from

There should be an option to filter / specify how the body index data is sent.

Right now each detected body (up to 6) has it's own pixel buffers. While this is fine for one user, it might hog the CPU when more people join the view.

Maybe there should be some sort of trackBody method to allow you to specify which user(s) you want their body index data from instead of all users.

How I can use aduio

hello,thanks for your demo,it so power. I can create a very beatiful demo.But I can not use aduio,you say Not Implemented Yet~~ I really want to use aduio to change my demo!!can you tell me how i can
use aduio.whatever,thanks for your demo!!!

any limitations? open/closed hand info available?

Hi, after some research this project seems to be the only way to get kinect 2.0 data in the browser, so thank you for your work. Im currently considering buying a kinect v2, though i need to be sure of what i can use it for in the browser. Since no extra info is on the main page of this project (besides the examples which i cannot yet run) I wonder: is all information from the kinect also availabld in js through this lib? Is for example the new feature of open hand/closed hand/two finger pointer available in the data?

Uncaught Error: %1 is not a valid Win32 application.

Hi all,

I've got this error:
ELECTRON_ASAR.js:173 Uncaught Error: %1 is not a valid Win32 application.
\?\C:\Users\ida\Documents\myapp\app\node_modules\edge-atom-shell\build\Release\edge.node

could you point me in the right direction on how to get this fixed?

Regards

Mario

How do I check kinect is open or closed?

Hello,
I am getting problem in closing the device sensor, I know it can be done using .close() and open using .open() methods , but I wants to check if it is already open then close the sensor, can anyone help me out?

Thank you!

socket.io ERR_CONNECTION_REFUSED

When I run any example and go to localhost:8000 a get a blank screen and this error in console:

GET http://localhost/socket.io/?EIO=3&transport=polling&t=1441152584189-0 net::ERR_CONNECTION_REFUSED

I assume that socket.io path could be wrong. Here is the structure of my folders:

C:\Users\mr\Desktop\node_modules
express
kinect2
socket.io

And then I run it in this folder C:\Users\mr\Desktop\node_modules\kinect2\examples\color-feed-browser>node index.js
Server listening on port 8000
Point your browser to http://localhost:8000

Draw Hand, css position, transition not fluid

Hello every one, I have a problem with drawing the hand. I would like the movements of the hand, on the browser, become fluid and not jerky.

Do you have a solution ?
Thanks.

Currently, my code for drawing the hand is :

if (!handStable) {
    if (!handOutOfBounds_width) {
        hand.css('left', left_hand_x);
    }

    if (!handOutOfBounds_height) {
        hand.css('top', top_hand_y);
    }
}

Issues with latest node.js v.0.12.2

Hello,

I am trying to get your kinect2 modul up and running for a pet project I am working on, yet I get errors when using it with the current node.js version 0.12.2 - the error lies in the edge bridge module not having been compiled for the current node version apparently (see below):

Your environment has been set up for using Node.js 0.12.2 (ia32) and npm.
C:\Users\chris>npm install C:\Users\chris\Desktop\kinect2-master\kinect2-master

[email protected] install C:\Users\chris\node_modules\kinect2\node_modules\edge


node tools/install.js

[Error: The edge module has not been pre-compiled for node.js version v0.12.2. Y

ou must build a custom version of edge.node. Please refer to https://github.com/

tjanczuk/edge for building instructions.]


Success: platform check for edge.js: node.js ia32 v0.12.2

[email protected] node_modules\kinect2

└── [email protected] ([email protected])

Issue resolving location of binary

Getting this error:

Uncaught Error: Cannot find module 'C:\Users\staff\Desktop\username\kinect2datachannel\node_modules\kinect2\build\kinect2\v0.1.1\Release\node-webkit-v0.12.3-win32-x64\kinect2.node'

I have kinect2.node but it is in a directory called "node-webkit-v0.12.3-win32-ia32" rather than "node-webkit-v.0.12.3-win32-x64". Any suggestions?

Electron : The specified procedure could not be found

Hi,

Thanks so much for this awesome lib.

I am trying to get it working using electron, and having some trouble. I have compiled based on the script in the readme, but am getting the following error when I run "electron ." in any of the example directories.

Uncaught Error: The specified procedure could not be found. E:\Code\Kinect\node_modules\kinect2\build\Release\kinect2.node

I am certain the file exists, and here is the output of the build script
screenshot

Thanks in advance.

Issue for MultiSourceReader in a browser

Hello,

Sorry in advance for my English ;-)

To start, I can say you that this script it's so good ;-)

I have a problem with the MultiSourceReader in browser.

I can't see in the browser the Skeleton and Colors (video) simultaneously.

I can recover Skeleton flux with kinect.openMultiSourceReader ({frameTypes: Kinect2.FrameType.body}); but I can't retrieve the color flux with kinect.openMultiSourceReader ({frameTypes: Kinect2.FrameType.color});

Here is my code for the broadcast MultiSourceReader color:

//var Kinect2 = require('../lib/kinect2'),
var Kinect2 = require('kinect2'), //change to 'kinect2' in a project of your own
    express = require('express'),
    app = express(),
    server = require('http').createServer(app),
    io = require('socket.io').listen(server),
    zlib = require('zlib');

var kinect = new Kinect2();

if(kinect.open()) {
    server.listen(8000);
    console.log('Server listening on port 8000');
    console.log('Point your browser to http://localhost:8000');

    app.get('/', function(req, res) {
        res.sendFile(__dirname + '/public/index_multi_video.html');
    });
        app.use(express.static(__dirname + '/public'));

        // compression is used as a factor to resize the image
        // the higher this number, the smaller the image
        // make sure that the width and height (1920 x 1080) are dividable by this number
        // also make sure the canvas size in the html matches the resized size
        var compression = 3;

        var origWidth = 1920;
        var origHeight = 1080;
        var origLength = 4 * origWidth * origHeight;
        var compressedWidth = origWidth / compression;
        var compressedHeight = origHeight / compression;
        var resizedLength = 4 * compressedWidth * compressedHeight;
        //we will send a smaller image (1 / 10th size) over the network
        var resizedBuffer = new Buffer(resizedLength);
        var compressing = false;
    kinect.on('multiSourceFrame', function(data){
                //compress the depth data using zlib
                if(!compressing) {
                    compressing = true;
                    //data is HD bitmap image, which is a bit too heavy to handle in our browser
                    //only send every x pixels over to the browser
                    var y2 = 0;
                    for(var y = 0; y < origHeight; y+=compression) {
                        y2++;
                        var x2 = 0;
                        for(var x = 0; x < origWidth; x+=compression) {
                            var i = 4 * (y * origWidth + x);
                            var j = 4 * (y2 * compressedWidth + x2);
                            resizedBuffer[j] = data[i];
                            resizedBuffer[j+1] = data[i+1];
                            resizedBuffer[j+2] = data[i+2];
                            resizedBuffer[j+3] = data[i+3];
                            x2++;
                        }
                    }

                    zlib.deflate(resizedBuffer, function(err, result){
                        if(!err) {
                            var buffer = result.toString('base64');
                            io.sockets.sockets.forEach(function(socket){
                                socket.volatile.emit('multiSourceFrame', buffer);
                            });
                        }
                        compressing = false;
                    });
                }
            });

   kinect.openMultiSourceReader({frameTypes: Kinect2.FrameType.color});

}


And my code to display color flux:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Node Kinect2 Client</title>
    <link rel="stylesheet" href="">
</head>
<body>
    <canvas id="bodyCanvas" width="640" height="360"></canvas>
    <script src="/socket.io/socket.io.js"></script>
    <script>
        var socket = io.connect('/');
        var canvas = document.getElementById('bodyCanvas');
        var ctx = canvas.getContext('2d');

        var colorProcessing = false;
        var colorWorkerThread = new Worker("js/colorWorker.js");

        colorWorkerThread.addEventListener("message", function (event) {
            if(event.data.message === 'imageReady') {
                ctx.putImageData(event.data.imageData, 0, 0);
                colorProcessing = false;
            }
        });

        colorWorkerThread.postMessage({
            "message": "setImageData",
            "imageData": ctx.createImageData(canvas.width, canvas.height)
        });

        socket.on('multiSourceFrame', function(imageBuffer){
            if(!colorProcessing) {
                colorProcessing = true;
                colorWorkerThread.postMessage({ "message": "processImageData", "imageBuffer": imageBuffer });
            }
        });
    </script>
</body>
</html>

I just can display the video flux with kinect.openColorReader(); but not with the MultiSourceReader.

Thank in advance for your help :-)

depth of joint

Is there a way to get depth of a joint? Right now I'm using the bodyFrame to get the X/Y coordinates of joints, but I'm not sure how to go about getting depth, since I'm not sure what each frame maps out to in the official Kinect documentation. Also, thank you so much for your work!

3D Joint Coordinates - Hand States

Hi Wouter,

node-kinect2 works great. Really enjoying having access to the skeleton in javascript. Right now I get the x and y coordinates for the joints. What would it take to implement the z coordinates for the joints as well as the hand (open, close, and finger) states?

Joint orientations request

Hello!

I would like to know if it's possible to serve the joint orientations for the body data. It would be very valuable for avatar animations.

running demos

sorry about the newbie question, but how can I run the demos? I've not managed to get require working on html.

Usage with Webpack

Im trying to use this fantastic package in my application. However when I get through to the library (inside lib/kinect2.js) then webpack complains that the module kinect2.node cant be found inside the build folder.

image

Any ideas?

Tried to download(404)

node-pre-gyp ERR! Tried to download(404): https://github.com/wouterverweirder/kinect2/releases/download/0.1.6/node-v67-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v67 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp ERR! Tried to download(undefined): https://github.com/wouterverweirder/kinect2/releases/download/0.1.6/node-v67-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v67 ABI, unknown) (falling back to source compile with node-gyp)

why?

Hand tracking in the browser

Hello, i'm French so excuse me for my bad English.
I have a problem with hand tracking.

Indeed, I have implemented this code :

function drawHand(jointPoint, handColor) {
    var x = jointPoint.depthX * innerWidth;
    var y = jointPoint.depthY * innerHeight;

    hand.css('left', x);
    hand.css('top', y);

    ...
}

But when my hand move in the browser, i can't reach the corners.

So, Do you have a solution to increase the sensitivity of the hand?

Thanks you.

Installation problem

I am not quite sure how to install, I unpacked zip to kinect2 folder on desktop and ran: npm install kinect2 but I got these errors:

C:\Users\mr\Desktop>npm install kinect2
\

[email protected] install C:\Users\mr\Desktop\node_modules\kinect2
node tools/install.js

C:\Users\mr\Desktop\node_modules\kinect2>if not defined npm_config_node_gyp (nod
e "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules
\node-gyp\bin\node-gyp.js" configure build ) else (node configure build )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm\nod
e_modules\node-gyp\lib\configure.js:114:14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:69:11
gyp ERR! stack at FSReqWrap.oncomplete (evalmachine.:95:15)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js" "configure" "build"
gyp ERR! cwd C:\Users\mr\Desktop\node_modules\kinect2
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
[email protected] node_modules\kinect2
└── [email protected]

No bodies logged

This is what I tried:

  1. Verified hardware connections by starting Kinect Studio and seeing myself wave to camera
  2. While KS still connected, ran the sample app of this project. Saw only:

node kinect2.node.js
Kinect Opened
[Kinect2] Created NodeKinect Instance
[Kinect2] Open
[Kinect2] OpenBodyReader
Kinect Closed

  1. Disconnected KS, then ran the sample app again. Output is same.

I didn't see any previous prior Issue, and there's no Wiki, so I suspect there's an undocumented step I missed. Please advise.

Error electron example

Hello everybody ! I executed these instructions
npm install --save-dev electron-rebuild
.\node_modules\.bin\electron-rebuild.cmd
node tools\electronbuild.js --target=0.30.2 --arch=x64

All done, any errors !

But after launched this instruction in the example
electron .

The electron app has launched but Kinect didn't start.
When I go to the Developer Tools, this error appears in the console
Uncaught Error: The specified procedure could not be found. \\?\C:\Users\Thomas\Desktop\Stage Thomas\Electron\kinect2\build\Release\kinect2.node

Do you have a solution ?
Thanks.

Ask about how to use handstate

I want to ask how to access handstate? Sorry if I ask like that because I'm still beginner in learning programming.
As an example I am trying to display text like this code

`var lefthand = bodyFrame.bodies[i].joints[Kinect2.JointType.handLeft].cameraY;
var head = bodyFrame.bodies[i].joints[Kinect2.JointType.head].cameraY;

if (lefthand>head){
	console.log("Your hand over your head")
}`

Then how to display text if both hands are closed or open?
I am trying to see what the contents of the handstate with this code but that result in the command prompt is [Object Object]

console.log (bodyFrame.bodies[i].joints[Kinect2.JointType.HandState]);

And I have no idea how to access it to display text. I hope someone can help me. thanks.

Save colorData to File

#Hi

This is not so much an issue but:
How would you write colorFrame-data (<Buffer ...>) to an actual file ?

`
function takeAPicture(){

 var kinect = new Kinect2();
  if(kinect.open()){
   kinect.on('colorFrame', function(newPixelData){
  kinect.close();

  var d = new Date();
  d = d.getTime();


  var pixelUtil= require('pixel-util');

  var imageData = pixelUtil.createImageData(ORIGINAL_IMAGE_WIDTH, ORIGINAL_IMAGE_HEIGHT);

  imageData.data = newPixelData;

  var buffer = new Buffer(newPixelData.length)

  for(var i=0; i<newPixelData.length; i++){
    buffer[i] = newPixelData[i];
  }
  fs.writeFile("C:\\foto.jpg", buffer, (err) => {
    if (err) throw err;
    console.log('It\'s saved!');
  });


});
kinect.openColorReader();
  }
}

`

regards,

Mario

joint tracked info

Hi!

First of all, excelent job! You made my life easier when I try to started projects using Kinect 2. Thank you!

However, I'm trying to calculate the height from skeleton and this is almost impossible without trackingState info of the joints(not the body, of each joint). I'm trying to follow this tutorial (http://pterneas.com/2012/06/08/kinect-for-windows-find-user-height-accurately/), where the results appears to be very accurate. But it's all written in C# what I want to avoid it if I can. Do you know another way to calculate height without using trackingState? I´ve come up with of using estimated values based on calculation including circunference and diameter of skull. But this is very difficult for me to get from Kinect. I've tried to check on C++ library in your repository if the information was there or if it's possible to get this information from it or even from the 'Kinect.h'. Well, I failed in both.

Can you help me/guide me, please?

Thanks!

Body.trackingId not unique

Once in a while I observe that a single BodyFrame contains multiple bodies with the same trackingId.

kinect.openBodyReader();
kinect.on("bodyFrame", (rawData) => {
    var seenBodyIds = {};
    rawData.bodies.map((body) => {
        if (seenBodyIds[body.trackingId]) {
            console.warn("Should not have duplicate tracking id",body.trackingId);
        }
        seenBodyIds[body.trackingId] = true; 
    });
});
// $> Should not have duplicate tracking id 72057594038335940

The bodies themselves were not duplicates, i.e. both included unique joint tracking data.

iTrackingId as an UINT64 has a max value 18.446.744.073.709.551.615:

UINT64 iTrackingId = 0;
hr = pBody->get_TrackingId(&iTrackingId);
m_jsBodyFrame.bodies[i].trackingId = iTrackingId;

JavaScripts Number.MAX_SAFE_INTEGER is 9.007.199.254.740.991:

Nan::Set(v8body, Nan::New<v8::String>("trackingId").ToLocalChecked(), Nan::New<v8::Number>(static_cast<double>(m_jsBodyFrameV8.bodies[i].trackingId)));

The last duplicate trackingId according to my log was 72.057.594.038.335.940 (> Number.MAX_SAFE_INTEGER).
In case this is a problem with the casting process/max value of datatype, switching trackingId from v8::Number to to v8::String might help.

color feed browser -node server crashes on launch

Hi Wouter
I have a perplexing issue. The color feed browser node application seems to crash shortly(less than a second) after launch. I even went back to an earlier version with no zlib. In the index.js file if I comment out these lines, the node server runs and does not crash.

resizedBuffer[j+1] = data[i+1];
resizedBuffer[j+2] = data[i+2];
resizedBuffer[j+3] = data[i+3];

What is even more perplexing is this seems to be machine specific. I was able to get the app running properly on my laptop running Windows 8.1, but NOT another machine.
If I do a trace on console.log('data[i+1];= '+data[i+1]);
as it cycles thru the loop I occasionally see undefined, so that might be part of the issue.

Can you think of anything hardware, or OS specific that might be the issue? I'm fairly certain the nodejs node_modules are correct as I simply did a npm install in the root and colorfeed browser directories. Am getting no errors when I run, it simply quits less than a second after starting. Any help appreciated!

Help Request on Setting Up

Hi,

Thanks so much for building this! I really hope I can use your lib to build my app! But I met some problems in the electron part when trying.

I have installed the Kinect2 SDK, installed the nodejs and used npm to installed the kinect2. Then I'm stuck by the electron part. To be honest I'm a novice of nodejs. So The tutorial says "build this module for electron usage" but I don't get that how to build the module. So I tried:

  1. the link embedded in the text (https://github.com/atom/electron/blob/master/docs/tutorial/using-native-node-modules.md) I followed the method it mentions and run

"npm install --save-dev electron-rebuild .\node_modules.bin\electron-rebuild.cmd"

but ERRs occurred:
image

  1. Then I searched some electron tutorial and found this link http://tutorialzine.com/2015/12/creating-your-first-desktop-app-with-html-js-and-electron/. It tells me to run "npm install" first and "npm start" then, to build a module. So I tried that in your code. Then a node_modules appears after "npm install", but ERRs occur when "npm start":

image

  1. After all these I also tried to run your next command: "node tools\electronbuild.js --target=0.30.2 --arch=x64" - then a lot of ERRs:

image

Could you please tell me what should I do to set up your library and start any example? Thanks so much for that.

Detect when hand is stable

Hi everyone, I would like to detect when the hand is stable. Do you have a solution for that ? Thanks.

can't run browser examples

I can run the Electron examples just fine but I keep getting the following error when I try to run any of the browser examples:

C:\Users\alex\Desktop\kinect2-master>node examples\color-feed-browser\index.js
module.js:440
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: The specified module could not be found.
\\?\C:\Users\alex\Desktop\kinect2-master\build\Release\kinect2.node

I tried doing npm install in any of the browser examples, followed by node index.js but the above error keeps happening.

C:\Users\alex\Desktop\kinect2-master>node -v
v5.10.1

C:\Users\alex\Desktop\kinect2-master>npm -v
3.8.3

C:\Users\alex\Desktop\kinect2-master>node-gyp -v
v3.3.1

Node.js server High CPU Usage

Hello everybody, when I go to the Task Manager, my Kinect Node.js server use 26% of CPU.

Do you have a solution to decrease that ?
Thanks.

Plans for extending the framework?

Hi,
Thanks for this great library it is fantastic, I have used it on a couple of internal projects and it was great to use and get things up and running fast.

I know that kinect has somewhat fallen out of favour and this is bit of niche project, but are there any plans on adding additional features? I recently had project that required face tracking features and I had to end up using WPF which was fine from the kinect data side, but a total chore when it came to the display where it had rendering problems, flickering and random freezing. Html would have been no problem in this instance and I would have ended up with a better product.

Don't think I have the skills to put together the c (be a long time since I used c) sdk and hook it into the node interface. If you have any tips or pointers about how you approached the project originally that could be most helpful.

Kind regards,
Jarrod

Compilation/Installation issues

Hey team,
I'm having a bit of an issue installing this Kinect2 module. It looks like the GetKinectDefaultKinectSensor can't link in the C++ part of this install.
I have had a look at the VS project to try figure out what the issue might be but I can't see any real issues.
This is my stack

if not defined npm_config_node_gyp (node "c:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" configure build )  else (node  configure build )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  kinect2.cc
     Creating library c:\Meerkats\Projects\kinect\node_modules\kinect2\build\Release\kinect2.lib and object c:\Meerkats\Projects\kinect\node_modules\kinec
  t2\build\Release\kinect2.exp
kinect2.obj : error LNK2001: unresolved external symbol _GetDefaultKinectSensor@4 [c:\Meerkats\Projects\kinect\node_modules\kinect2\build\kinect2.vcxproj]
c:\Meerkats\Projects\kinect\node_modules\kinect2\build\Release\kinect2.node : fatal error LNK1120: 1 unresolved externals [c:\Meerkats\Projects\kinect\nod
e_modules\kinect2\build\kinect2.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (c:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "c:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "build"
gyp ERR! cwd c:\Meerkats\Projects\kinect\node_modules\kinect2
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok

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.