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.
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.
- Download Anaconda get the 32-bit version. This includes NumPy.
- pip install comtypes
- Install the Kinect for Windows SDK v2
Full List of Dependencies
- Python 2.7.x or 3.4 and higher
- NumPy
- comtypes
- Kinect for Windows SDK v2
- Kinect v2 sensor and adapter Note: you can use a Kinect for Xbox One as long as you also have the Kinect Adapter for Windows
- PyGame - for running PyKinectBodyGame sample
You only need PyKinectV2.py and PyKinectRuntime.py (+ comtypes and NumPy installed, and PyGame for running PyKinectBodyGame). PyKinectRuntime class is what you need for working with Kinect sensor. See how to use it in PyKinectBodyGame sample.