© Vangos Pterneas 2022
V. PterneasMastering the Microsoft Kinect https://doi.org/10.1007/978-1-4842-8070-6_7

7. Streaming Data in the Background

Vangos Pterneas1  
(1)
New York City, NY, USA
 

Up to this point, we have learned how to stream data from the Kinect device. We fully understand how to properly open the cameras and acquire color, depth, body, and IMU information.

In our very first approach, we used Unity’s Update() method to check for data. Even though this way is easy to illustrate and does not harm rapid prototyping, it is also quite problematic in real-world scenarios. Why? Because we are blocking Unity’s main thread as we wait for new frames. Let’s assume that you have selected the 30 FPS option in your Kinect settings. Calling the GetCapture() ...

Get Mastering the Microsoft Kinect: Body Tracking, Object Detection, and the Azure Cloud Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.