Skip to content

Wrapper to expose Kinect for Windows v2 API in Python. Fork of github.com/Kinect/PYKinect2

License

Notifications You must be signed in to change notification settings

secondlife-3p/PyKinect2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a fork of PyKinect2

This branch is a fork of the repository at https://github.com/Kinect/PyKinect2 which has python interfaces to the Kinect v2 SDK and sensor. It has a few updates needed to work with modern Python 3, and the original repository seems to be no longer maintained or updated.

This is used by the experimental Second Life Puppetry plug in - code that connects a Kinect v2 sensor motion capture data to the Second Life viewer. See the repository at https://github.com/secondlife/leap for that plug-in.

Original ReadMe File:

PyKinect2

Enables writing Kinect applications, games, and experiences using Python. Inspired by the original PyKinect project on CodePlex.

Only color, depth, body and body index frames are supported in this version. PyKinectBodyGame is a sample game. It demonstrates how to use Kinect color and body frames.

Prerequisites

The easiest way to get most of the pre-requisites is to use Anaconda which includes NumPy. You'll then need to pip install comtypes. The PyKinectBodyGame sample requires PyGame which needs to be manually installed.

  1. Download Anaconda get the 32-bit version. This includes NumPy.
  2. pip install comtypes
  3. Install the Kinect for Windows SDK v2

Full List of Dependencies

Installation

The package can be installed through pip using the usual means:

pip install pykinect2

If you are using a virtual environment, be sure to activate it first.

For more information, please see https://pip.pypa.io/en/latest/user_guide.html#installing-packages

Installation (Manual)

To install the package manually, clone this repository to a local folder and include it in the appropriate python environment. If installing in a virtual environment, be sure to install all required dependencies (above).

For example:

cd c:\projects\myproject\env\
/Scripts/activate.bat

easy_install -a c:\projects\downloads\PyKinect2

After installation is complete, you can launch the interactive python shell and import pykinect2 to ensure everything has been installed properly.

Core helper classes for working with the Kinect sensor are located in PyKinectRuntime.py. For usage examples, please see /examples/PyKinectBodyGame.py.

About

Wrapper to expose Kinect for Windows v2 API in Python. Fork of github.com/Kinect/PYKinect2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%