Home

Awesome

Kinect2 Toolbox

Code for CVPR 2015 Paper

Understanding Tools: Task-Oriented Object Modeling, Learning and Recognition

Project website: http://www.yzhu.io/projects/cvpr15_tool/

Bibtex:

@InProceedings{zhu2015tool,
    title={Understanding Tools: Task-Oriented Object Modeling, Learning and Recognition},
    author={Zhu, Yixin and Zhao, Yibiao and Zhu, Song-Chun},
    booktitle={IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
    year={2015}
}

Kinect v2 Toolbox Manual

Contact: Yixin Zhu (yixin.zhu@ucla.edu)

Last revised: October 2016

Prerequisite

Usage

The toolbox includes two types of code: Recorders and Converters. Recorders dump the Kinect raw data into RGB images, depth images and skeleton data. Converters post-process the data collected by Recorders.

Recorders include two sets:

Set 1: Everything will be converted to depth space later.

Set 2: Everything will be converted to color space later.

Converters include two sets:

Set 1: Everything will be converted to depth space later.

Set 2: Everything will be converted to color space later.

We recommend to use the binary files located inside Pipeline forder if you do not need to change anything in the source code.

Record Kinect Raw Data with Kinect Studio

You will need Kinect v2 to physically connect to your PC. Please refer to this page to check whether your machine is compatible with Kinect v2. The most important component is a USB 3.0 port.

Open Kinect Studio, and switch to Record tab. Click on Connect button, and check all 11 streams. Once you finish recording, a .xef file will be generated.

alt text

Kinect v2 consumes lots of memory. If you need to record long clips, remember to edit the buffer size before recording. Also, in order to achieve high frame rate when dumping the data into hard drive, it is recommended to have more than 16GB memory for Kinect Studio.

alt text

Recorders

In this section, NO Kinect v2 needed to physically connect to PC. Following instructions assume no connection.

alt text

alt text

alt text

Converters

All the converters load the data from data folder, and write the new data into the same data folder.

The inputs and outputs of converters are defined as

ConvertersInputsOutputsPhysically plugin Kinect?
Depth2PCraw_depthpoint cloud file (.ply)Yes
RGBDAligndepth2rgb_mapper, raw_depth, raw_rgbaligned_rgbNo
ColorDepth2PCaligned_rgb, raw_depthpoint cloud file (.ply)Yes
RGBDAlign2depth2rgb_mapper2, raw_depth, raw_rgbaligned_depthNo

MATLAB Visualization (optional)

This part of toolbox is designed for visualization only. You can visualize the data easily in other programming languages, e.g. Python, C++, etc.

alt text