Giter VIP home page Giter VIP logo

nite2-python-bindings's Introduction

nite2-python-bindings

Python bindings for a subset of the Primesense NiTE 2 middleware

What is implemented

Only the minimum subset of features that allow to get skeletons are implemented.

Especially:

  • No hand tracking
  • No NiTE posture handling
  • None of the fancy stuff of the UserTrackerFrameRef class (floor location, user map, etc.)

The missing methods are mentioned as TODO in the header files.

NiTE 2 is not the cleanest library ever, its documentation is minimal and its source code is closed, so I had to make a few assumptions about the way it behaves. Usually I tried to be as safe as possible even if the code is not as efficient.

This is far from being anything near production level code, but I share it in hope it is useful. Feel free to use/extend/fix/break as you want.

Build

Just make should be enough if your NITE2 / OpenNI2 environment variable are set

You will need Boost.Python and of course Python 2.7.x

Use

The classes and method follow the C++ API. Only the following has changed:

  • UserTrackerFrameRef.getUsers() returns a list of user IDs instead of an array of UserData objects. You have to get the UserData objects manually with UserTrackerFrameRef.getUserById(uid)
  • Everything that returns a nite::Status instead returns a boolean (True if STATUS_OK, False otherwise)
  • SkeletonJoint.getOrientation() and SkeletonJoint.getPosition() return lists of floats with the coordinates instead of Quaternion/Point3D objects. The order is (w, x, y, z) for orientations and (x, y, z) for positions.

nite2-python-bindings's People

Contributors

mirandablue avatar

Watchers

James Cloos avatar  avatar

nite2-python-bindings's Issues

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.