Skip to main content

Configuring the Device

  • Chapter
  • First Online:
Mastering the Microsoft Kinect
  • 599 Accesses

Abstract

It’s, finally, time to get our hands dirty and write some code to program the Kinect device. No matter how old I get, the enthusiasm of coding for such an exciting technology resembles the unique feeling of the first “Hello World” program I’ve ever written.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Keep in mind that the SDK version number may be different in your case.

  2. 2.

    DNN stands for “Deep Neural Network,” and it’s a type of AI set of cognitive algorithms. ONNX stands for “Open Neural Network Exchange” and is an AI ecosystem. The ONNX Runtime is a low-level engine that processes the Machine Learning model to acquire its body-tracking results.

  3. 3.

    Netron model visualizer: https://lutzroeder.github.io/netron/

  4. 4.

    Mastering Azure Kinect source code: https://github.com/vangos/mastering-azure-kinect

  5. 5.

    Mastering Azure Kinect Unity package: https://github.com/vangos/mastering-azure-kinect/releases/latest

  6. 6.

    The video camera and the depth camera are different sensors; thus, they do not fire their frames at exactly the same time.

  7. 7.

    To create a disposable object yourself, simply implement the IDisposable C# interface.

  8. 8.

    The actual exception message would read “AzureKinectException: result = K4A_WAIT_RESULT_FAILED”.

  9. 9.

    There is no such thing as a fully bulletproof application. Things may go wrong, even if you think you’ve checked everything. For example, what happens if the user manually unplugs the Kinect cable while the app is in use? In that case, you should add a background process that’s constantly checking for the number of connected devices. I’ll leave this as an exercise for you.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2022 Vangos Pterneas

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Pterneas, V. (2022). Configuring the Device. In: Mastering the Microsoft Kinect . Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-8070-6_3

Download citation

Publish with us

Policies and ethics