GithubHelp home page GithubHelp logo

ikenichiro / kinect-azure Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wouterverweirder/kinect-azure

0.0 1.0 0.0 4.51 MB

Nodejs library to access the azure kinect data from the official SDK

License: MIT License

Python 2.41% JavaScript 27.63% C++ 65.82% C 4.14%

kinect-azure's Introduction

Azure Kinect Library for Node / Electron

Donate

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

screenshot of skeleton 2d demo

Features:

  • get rgb camera feed
  • get depth feed
  • get ir feed
  • transform between color and depth feed
  • point cloud (greyscale and colored)
  • get skeleton joints (2d and 3d)
  • body index / user masking
  • get temperature / accelerometer / gyroscope data (IMU data)

Installation

Make sure you have the Azure Kinect drivers installed.

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

$ npm install kinect-azure

There are no precompiled binaries yet, so you need to have node-gyp installed on your system.

Potential issues

You might run into the error below when trying to install this module:

Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\15.0\Bin\MSBuild.exe ENOENT

To fix this, make sure to install the latest version of node-gyp globally:

$ npm install -g node-gyp

Body tracking

If you want to use body tracking, you will need to have a couple of dll files in the root of your application. Otherwise, you'll run into errors like the one below:

Cannot locate onnxruntime.dll

The install script of this module tries copy these files automatically. You should have the following files in your application root after running npm install:

  • onnxruntime.dll
  • dnn_model_2_0.onnx
  • cublas64_100.dll
  • cudart64_100.dll
  • vcomp140.dll
  • cudnn64_7.dll

If you can't find these files, copy them from inside node_modules/kinect-azure to your project root.

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

kinect-azure's People

Contributors

wouterverweirder avatar grumpy-sailor avatar sirfancywalrus avatar ikenichiro avatar peteshand avatar

Watchers

James Cloos avatar

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.