一:官方SDK和文档地址。
Azure Kinect DK 文档 | Microsoft Learn
1:Using Azure Kinect SDK
https://github.com/microsoft/Azure-Kinect-Sensor-SDK/blob/develop/docs/usage.md
![](https://i-blog.csdnimg.cn/blog_migrate/86e50cdb67c258e2f175a258392410bb.png)
2:Azure Kinect Body Tracking
Download Azure Kinect Body Tracking SDK v1.1.2 from Official Microsoft Download Center
![](https://i-blog.csdnimg.cn/blog_migrate/2fea584619553bd9f00967df375fe6b7.png)
3:更新固件
Azure Kinect 固件工具 | Microsoft Learn
4:Azure Kinect Examples for Unity
Azure Kinect Examples for Unity | Integration | Unity Asset Store
二:Kinect显示视频。
1:添加空白组件,添加KinectManger脚本。
![](https://i-blog.csdnimg.cn/blog_migrate/f5584912cd1adaa72c6e84924f04f8bf.png)
![](https://i-blog.csdnimg.cn/blog_migrate/5c46277492e200ff1f499007d57aad87.png)
三:显示Kinect是否初始化。
bool isIni = KinectManager.Instance.IsInitialized();
![](https://i-blog.csdnimg.cn/blog_migrate/c464efb12d0f13e84e465e90a0e6ade2.png)
四:Kinect显示图片。
using com.rfilkov.kinect;
using Intel.RealSense;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class UseKinectManger : MonoBehaviour
{
public RawImage pic;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
bool isIni = KinectManager.Instance.IsInitialized();
if (isIni)
{
Texture kinectPic = KinectManager.Instance.GetColorImageTex(0);
pic.texture= kinectPic;
}
}
}
![](https://i-blog.csdnimg.cn/blog_migrate/2da6d8441c7e0833e42a9c75c985a5b0.png)
![](https://i-blog.csdnimg.cn/blog_migrate/7497204feaf48e783c92724fd8b38e14.png)
图片是上下颠倒的话,将RawImage Scale 置为-1。
![](https://i-blog.csdnimg.cn/blog_migrate/f14ccb5240e2031ff89e93efdee2aa04.png)
五:Kinect显示深度数据。
using com.rfilkov.kinect;
using Intel.RealSense;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class UseKinectManger : MonoBehaviour
{
public RawImage pic;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
bool isIni = KinectManager.Instance.IsInitialized();
if (isIni)
{
Texture kinectPic = KinectManager.Instance.GetDepthImageTex(0);
pic.texture= kinectPic;
}
}
}
![](https://i-blog.csdnimg.cn/blog_migrate/52cb780df65305769d37b638d4fe2e45.png)
![](https://i-blog.csdnimg.cn/blog_migrate/603a29d339b9284967246b464b93ecef.png)
教程
1:Azure Kinect微软摄像头Unity开发小结
![](https://i-blog.csdnimg.cn/blog_migrate/a90e11b84865da0c5816f4b1e2f2d806.png)
Azure Kinect微软摄像头Unity开发小结_azure kinect examples for unity-CSDN博客
2:Unity AzureKinect所有Demo整理分析(持续更新中)
![](https://i-blog.csdnimg.cn/blog_migrate/18a2aa99570394b63677daaac4ad1850.png)
Unity AzureKinect所有Demo整理分析(持续更新中)_azure kinect examples for unity-CSDN博客