Código Generativo works and portfolio of Thomas Sanchez Lengeling
Kinect for Windows v2 Processing Library


Kinect for Windows v2 (K4W2) library for Processing, a simple to use Kinect v2 library for processing, more about the Microsoft Kinect here.

Check out the tutorial here.

Current Version 0.7.2

Library is currently on develop, with SDK Version 1409 (11/2014)

Kinect 2 Library for processing preview from thomas sanchez lengeling on Vimeo.



– A Kinect for Windows v2 Device (K4W2)
– Install Kinect SDK v2
– Computer with a dedicated USB 3.0 and 64bits
– Windows 8, 8.1
– Processing 2.2.1
– Update your latest video card driver



– Install Kinect SDK v2
– Copy KinectPV2 folder to your processing libraries sketch folder.



  • HDColor, color image (RGB) 1920 x 1080.
  • DepthTest, obtain depth information frame.
  • MaskTest, get only the contour image of the users (bodyIndex).
  • PointCloudColor, extract point cloud mapped to the color frame.
  • PointCloudOGL, point cloud render using openGL.
  • PointCloudDepth, obtain the point cloud as a deph Image useful for distance information and distance threshold, also access the depth information as a [] array.
  • MapDepthToColor, Map Depth to Color
  • SimpleFaceTracking, simple face tracking up-to 6 users.
  • Skeleton3d, 3d skeleton tracking.
  • SkeletonColor, map color frame to skeleton.
  • SkeletonMaskDepth, map depth frame and mask frame to skeleton.
  • SkeletonTest, simple 6 users skeleton.
  • depthInfraredColor, various images frame test.
  • CoordinateMapperRGBDepth, RGB+Depth map
  • HDFaceVertex. HDFace tracking vertex Points
  • openCV Examples
    • Simple Live Capture
    • Contour finder from either the bodyIndex frame or from the depth Image threshold.

To build the library from source, use this repository  [KinectPV2_BuildLibs]

Version 0.7.2

Memory Leak Fixes

Version 0.7.1

Added openCV examples for contour finder
Color Point Cloud
Map Depth to Color
Change naming to avoid ambiguity Rectangle -> KRectangle, Quartenion-> KQuartenion

Version 0.7

RGB+Depth functions
HDFace Detection.

Version 0.6

PointCloud to PImage and getRawData()

Version 0.5

Simple FaceTracking with mode detection, up to 6 users.

Version 0.4

Skelton tracking for 6 user
Hand gesture recognition, hand open, close.
Body track, only supports 3 users, next version up to 6 users.

Version 0.3 Beta

RGB Image
Grayscale Infrared
Grayscale Depth data
Point Cloud



Your email address will not be published. Required fields are marked *

three − one =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Mico Rex Visuals Processing, Video • June 29, 2014

Mico Rex is an experimental electro-pop Mexican duo founded in 2010 by Ernesto Romero and Jorge Ramírez, pioneers in live…

Rorschach_3.2 – Piezas audioreactivas enredadas Library, Processing • November 27, 2013

Rorschach_3.2 Piezas audioreactivas enredadas /*vivo*/ 2013 [redes] International Symposium of code and Music Nacional Mexican center of arts by Emmanuel…

Screen Shot 2014-10-26 at 7.23.44 PM
Ferrero – Dynamic Twitter app Installation, Processing • November 26, 2013

The project involved in sending twitters with a hastag #MomentosdeOro to light-up the Christmas tree. We develop a custom-made software…