Addons for openframeworks to send and receive kinect (v2 and azure) signal through the network.
Branches ahead of master
These branches have commits not yet on master — could be unmerged fixes or work in progress worth a look.
README
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 |
Protocol
A communication tcp/ip is established from the server and the client. A single message has the following data:

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.``
c++ 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.
- Install libk4a1.3, libk4a1.3-dev, k4a-tools (version could be change) as described in Microsoft Documentation
- Use the jetson-nano breanch of ofxAzureKinect
- In config.make add PROJECT_LDFLAGS=-lk4a.
kinectReceiver
Generic stream receiver for kinect (Kinect V2 and KinectAzure) depth map data.
ofxAddons