OpenFrameworks addon to send data from kinect over the network.
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.
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:
- retrive data from the kinect
- put data on byte array (1 or 2 bytes per pixel)
- compress data using zlib
- retrive compressed data size
- Send raw bytes. First 4 bytes (int) are the size of the message.
Every new frame a message is send.
Add ofxDepthStreamKinectReceiver to the preprocessor to enable opencv dependancies.
#define ofxDepthStreamKinectReceiver
Visual Studio > Properties > Configuration Properties > C/C++ > Preprocessor > Preprocessor Definitions
Using ofxAzureKinect retrive depth data of AzureKinect and it starts a server stream.
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.
Generic stream receiver for kinect (Kinect V2 and KinectAzure) depth map data.