Kinectv2 addon for openFrameworks
Forks
Forks pushed to more recently than wearenocomputer/ofxNCKinect itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.
Branches ahead of master
These branches have commits not yet on master — could be unmerged fixes or work in progress worth a look.
README
ofxNCKinect
KINECT IS ALIVE!
After we heard the news Microsoft is reviving the Kinect we decided to upload our openFrameworks KinectV2 library.
This code is a collection of stuff we have been using for the last few years. Speed comes first, so we tried to create code that let's us choose what features we would need for a project (color vs no color, only 2d vs 3d tracking, etc...). It includes stuff like user management, 2d and 3d scene management, sending data over the network, pointcloud triangulation, gesture detection, area management, etc...
It is no way an official API, so use it at your own risk.
Installation
This code only works on Windows 10/64 bit systems.1) Install openFrameworks:
OF 0.10.1 use the master branch of this repo OF 0.9.8 use the of_0_9_8 branch of this repo
2) Required addons:
ofxGui ofxOpenCV
3) Install the KinectV2 sdk:
https://www.microsoft.com/en-us/download/details.aspx?id=44561
To compile the examples use the openFrameworks project generator and the Kinect64.props file to set the paths to the Kinect SDK. Build for 64 bit.
<img src="https://raw.githubusercontent.com/wearenocomputer/ofxncKinect/master/images/pm.jpg" height="270" width="320" >
Use the Property Manager in Visual Studio to add the Kinect64.props file.
Standing on the shoulders of giants
Love to the openFrameworks community!In this repo we have used code from:
Roy Macdonald - ofxInfiniteCanvas Zach Lieberman- ofxMeshUtils Vanderlin - ofxTimer Rene Nyffenegger- Socket
EXAMPLES
Basic Example
This is a basic example combining color, 2d and 3d Kinect data.Gestures Example
Using custom trained gestures. This example loads in a gbd file, in this case trained for the famous Crane Karate Kid Kick, and shows how to handle incoming data.When using gestures make sure to: 1. #define
GESTURES in the file ncKinectv2Core.h 2. copy the Kinect20.VisualGestureBuilder.dll file in the bin folder (see lib folder)TCP Sender/Receiver Example
You can use multiple senders to send Kinect data over the network to the Kinect Receiver.We support sending:
Pointcloud Floorplane Skeleton data
Triangulator Example
Example on how to create a mesh from user point cloud data in real time.
ofxAddons