Kinect for windows v2 gesture recognition using Kinect Studio tool of (a)

Reprinted to: https://www.parful.com/blog/article/106

Kinect for window v2 (hereinafter referred to as k4wv2) offers two tools gesture recognition cooperate with each other, namely Kinect Studio (for recording data information posture) Visual Gesture Builder (performed ML (machine learning based posture data Kinect Studio Recording ), the training results as a gesture database files).

Create your own gesture database using k4wv2 VGB tool, and the basic process used in the program is

  1. Use Kinect Studio Recording suffix .xrf or .xef posture data file
  2. Use Visual Gesture Builder gesture-based data files Kinect Studio Recording training paid gesture database file name suffix of .gbd or .gba
  3. Use Visual Gesture Builder program provides an API for database files obtained by the posture training match

The procedures Kinect Studio Tools

In this process only describes the use of the more important steps to introduce specific Kinect Studio panel See  MSDN Kinect Studio Panel Introduction

  • Open Kinect Studio program, click RECORD -> Connect to service
  • After successful connection interface shown Kinect
  • Check FILE -> Settings -> Advanced stream display
  • At this time, the view in FIG.
  • Click on the C button to cancel all flow check
  • In this case, you need to record data by selecting the appropriate stream flow
  • K4wv2 following types of data sources
  • 在此,我们勾选 Nui Raw 1R 11bit , 该选项所需的流将会被一并勾选。(该选项录制流为传感器核心元件录制的原生数据流,后缀名为 .xrf,不能直接被 Visual Gesture Builder 工具使用。)
  • 点击 Start recording file 按钮进行录制,(例如可以录制一个坐下的动作)录制完成后 点击 Stop recording file 停止录制。
  • 录制结束后,可以在PLAY面板进行相应流的播放测试。
  • 打开 Settings ->Recording File Path 所对应的文件夹,将会看到刚刚录制的后缀名为 .xrf 的数据流文件
  • 关闭 Kinect Studio,将录制的文件重命名为符合该动作的名称,如”Hand Up”,”Seated”,”Run”等等。此处假设为Seated.xrf
  • 打开命令行工具 进入 Kinect Studio 安装目录(接下来的目标是使用 KSConvert 工具将 Seated.xrf 处理为含有体感事件的后缀名为 .xef 的数据流文件。)
  • KSConvert 命令为:KSConvert [options] source destination
    • 示例:KSConvert D:Seated.xrf D:Seated.xef 将会把D盘根目录下的 Seated.xrf 处理为 Seated.xef 文件
    • 处理结果如图
    • 目标文件名如果不填写的话默认与原文件名一致
  • 至此,我们便完成了使用 Kinect Studio 录制数据流的工作,Seated.xef文件正是我们所需要的

录制.xef文件的另一种简单步骤

我们只需要在录制前勾选我们所需要的录制流,如 Nui Body Frame, Nui Body Index, Nui Depth等,录制结果将直接是后缀名为 .xef的文件,之前录制.xrf文件的原因是因为 xrf = Xbox Raw File, xef = Xbox Event File, 将来Visual Gesture Builder 更新时,被处理过的 .xef文件将有可能无法使用,而 .xrf文件只需要用更新后的KSConvert 重新处理便可被重新使用。

Guess you like

Origin blog.csdn.net/ZDT_zdh/article/details/90473834