ofxNCKinect
ofxNCKinect copied to clipboard
Kinectv2 addon for openFrameworks
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.
- Install openFrameworks:
- Required addons:
- ofxGui
- ofxOpenCV
- 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.
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:
- #define
GESTURESin the filencKinectv2Core.h - copy the
Kinect20.VisualGestureBuilder.dllfile 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.