【Azure Kinect】配置Azure Kinect SDK,验证并保存流传输

目录

设置 Azure Kinect DK

下载Azure Kinect传感器 SDK

验证Azure Kinect设备是否流式传输数据

将Azure Kinect传感器流录制到文件中

参考链接


  • 设置 Azure Kinect DK

  1. 将电源连接器插入设备背面的电源插孔。 将 USB 电源适配器连接到线缆的另一端,然后将适配器插入电源插座。

  2. 将 USB 数据线的一端连接到设备,将另一端连接到电脑上的 USB 3.0 端口。

  3. 验证电源指示器 LED(USB 电缆旁边)是否为稳定白色。

    设备通电需要几秒钟时间。 当正面的流 LED 指示灯熄灭时,表示设备可供使用。

  4. SDK 需要设备固件的最新版本才能正常工作。 若要检查并更新固件版本,请按更新 Azure Kinect DK 固件中的步骤操作。

  • 下载Azure Kinect传感器 SDK

Azure Kinect 传感器 SDK 下载:Azure Kinect 传感器 SDK 下载 | Microsoft Learn

也可以直接点击这个链接:Azure-Kinect-Sensor-SDK/docs/usage.md at develop · microsoft/Azure-Kinect-Sensor-SDK · GitHub

下载安装,记住安装路径,建议默认安装(C:\Program Files\Azure Kinect SDK v1.4.1)。

  • 验证Azure Kinect设备是否流式传输数据

打开C:\Program Files\Azure Kinect SDK v1.4.1\tools文件夹下的k4aviewer.exe:

点击绿色的按钮open device,然后再点击绿色的按钮start:

即可验证该工具是否可视化每个传感器流:深度相机、彩色相机、红外相机等。

  • 将Azure Kinect传感器流录制到文件中

根据Azure Kinect DK录制器提供的命令.\k4arecorder.exe output.mkv,报错如下:

经过我的一番分析,改成了.\k4arecorder.exe "D:\Azure Kinect Data\output.mkv",运行成功:

(按Ctrl+C键即可停止录制)

还提供了不同的命令行参数用于输出指定文件及录制模式等:

k4arecorder [options] output.mkv

 Options:
  -h, --help              Prints this help
  --list                  List the currently connected K4A devices
  --device                Specify the device index to use (default: 0)
  -l, --record-length     Limit the recording to N seconds (default: infinite)
  -c, --color-mode        Set the color sensor mode (default: 1080p), Available options:
                            3072p, 2160p, 1536p, 1440p, 1080p, 720p, 720p_NV12, 720p_YUY2, OFF
  -d, --depth-mode        Set the depth sensor mode (default: NFOV_UNBINNED), Available options:
                            NFOV_2X2BINNED, NFOV_UNBINNED, WFOV_2X2BINNED, WFOV_UNBINNED, PASSIVE_IR, OFF
  --depth-delay           Set the time offset between color and depth frames in microseconds (default: 0)
                            A negative value means depth frames will arrive before color frames.
                            The delay must be less than 1 frame period.
  -r, --rate              Set the camera frame rate in Frames per Second
                            Default is the maximum rate supported by the camera modes.
                            Available options: 30, 15, 5
  --imu                   Set the IMU recording mode (ON, OFF, default: ON)
  --external-sync         Set the external sync mode (Master, Subordinate, Standalone default: Standalone)
  --sync-delay            Set the external sync delay off the master camera in microseconds (default: 0)
                            This setting is only valid if the camera is in Subordinate mode.
  -e, --exposure-control  Set manual exposure value (-11 to 1) for the RGB camera (default: auto exposure)

可以使用k4aviewer.exe打开输出的 .mkv 文件:

  • 参考链接

快速入门 - 设置 Azure Kinect DK | Microsoft Learn

快速入门 - 将 Azure Kinect 传感器流录制到文件中 | Microsoft Learn

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值