Skip to content

Latest commit

 

History

History
66 lines (39 loc) · 2.18 KB

File metadata and controls

66 lines (39 loc) · 2.18 KB

ofxDepthStreamKinect

OpenFrameworks addon to send data from kinect over the network.

Compatibility

This addons is compatible with the following kinect:

OS Sender Receiver
Windows 10 Yes Yes
Mac OS No Yes

The sender binary (java) for KinectV2 is available on here.

Protocol

A communication tcp/ip is established from the server and the client. A single message has the following data:

alt text

Header: int value of N, number of bytes of the message Message: byte array of data compressed.

The steps to get the single message are:

  1. retrive data from the kinect
  2. put data on byte array (1 or 2 bytes per pixel)
  3. compress data using zlib
  4. retrive compressed data size
  5. Send raw bytes. First 4 bytes (int) are the size of the message.

Every new frame a message is send.

Preprocessor Macro

Add ofxDepthStreamKinectReceiver to the preprocessor to enable opencv dependancies.

#define ofxDepthStreamKinectReceiver

Visual Studio > Properties > Configuration Properties > C/C++ > Preprocessor > Preprocessor Definitions

Examples

kinectAzureSender

Using ofxAzureKinect retrive depth data of AzureKinect and it starts a server stream.

Jetson Nano

This addons works with Jetson Nano.

kinectReceiver

Generic stream receiver for kinect (Kinect V2 and KinectAzure) depth map data.