How do I persist movement data from Kinect for Windows?

Last reviewed: 6/1/2014

HOW Article ID: H061408

The information in this article applies to:

  • KinesicsKit 2

Summary

Record and playback movement data from Kinect for Windows.

More Information

To perist the image data capture for editing and analytics, simply use the StartRecording method to turn on the sensor cameras and persist the data. To stop capturing data, simply use the StopRecording method to turn off the sensor cameras.

Specify a SQL CE database or SQL Server login string for peristing index of movement data.


// Turn the sensor on, capture, and persist data
// Option 1. Use SQL Compact Edition
NChantKM1.StartRecording(0, "mysensordata.sdf");
// Option 2. Connect to SQL Server
NChantKM1.StartRecording(0, "Server=.\\SQLExpress;Database=mysensordata;Integrated Security=SSPI");

// Turn the sensor off
NChantKM1.StopRecording(0);
       

// Turn the sensor on, capture, and persist data
// Option 1. Use SQL Compact Edition
pChantKM->StartRecording(0, L"mysensordata.sdf");
// Option 2. Connect to SQL Server
pChantKM->StartRecording(0, L"Server=.\\SQLExpress;Database=mysensordata;Integrated Security=SSPI");

// Turn the sensor off
pChantKM->StopRecording(0);
    

// Turn the sensor on, capture, and persist data
// Option 1. Use SQL Compact Edition
pChantKM->StartRecording(0, "mysensordata.sdf");
// Option 2. Connect to SQL Server
pChantKM->StartRecording(0, "Server=.\\SQLExpress;Database=mysensordata;Integrated Security=SSPI");

// Turn the sensor off
pChantKM->StopRecording(0);

// Turn the sensor on, capture, and persist data
// Option 1. Use SQL Compact Edition
ChantKM1.StartRecording(0, 'mysensordata.sdf');
// Option 2. Connect to SQL Server
ChantKM1.StartRecording(0, 'Server=.\\SQLExpress;Database=mysensordata;Integrated Security=SSPI');

// Turn the sensor off
ChantKM1.StopRecording(0);
    

// Turn the sensor on, capture, and persist data
// Option 1. Use SQL Compact Edition
JChantKM1.startRecording(0, "mysensordata.sdf");
// Option 2. Connect to SQL Server
JChantKM1.startRecording(0, "Server=.\\SQLExpress;Database=mysensordata;Integrated Security=SSPI");

// Turn the sensor off
JChantKM1.stopRecording(0);
    

// Turn the sensor on, capture, and persist data
// Option 1. Use SQL Compact Edition
NChantKM1.StartRecording(0, "mysensordata.sdf")
// Option 2. Connect to SQL Server
NChantKM1.StartRecording(0, "Server=.\SQLExpress;Database=mysensordata;Integrated Security=SSPI")

// Turn the sensor off
NChantKM1.StopRecording(0)