Skip to content

Commit

Permalink
Merge pull request MicrosoftDocs#83071 from MicrosoftDocs/repo_sync_w…
Browse files Browse the repository at this point in the history
…orking_branch

Confirm merge from repo_sync_working_branch to master to sync with https://github.com/Microsoft/azure-docs (branch master)
  • Loading branch information
huypub committed Jul 23, 2019
2 parents 7721b35 + bcf51e4 commit e6fab12
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions articles/kinect-dk/build-first-body-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ The first step in getting body tracking results is to create a body tracker. It
```C
k4a_calibration_t sensor_calibration;
k4a_device_get_calibration(device, device_config.depth_mode, K4A_COLOR_RESOLUTION_OFF, &sensor_calibration);
k4a_device_get_calibration(device, deviceConfig.depth_mode, K4A_COLOR_RESOLUTION_OFF, &sensor_calibration);
k4abt_tracker_t tracker = NULL;
k4abt_tracker_create(&sensor_calibration, &tracker);
Expand Down Expand Up @@ -153,15 +153,15 @@ k4a_device_close(device);

int main()
{
k4a_device_configuration_t device_config = K4A_DEVICE_CONFIG_INIT_DISABLE_ALL;
device_config.depth_mode = K4A_DEPTH_MODE_NFOV_UNBINNED;
k4a_device_configuration_t deviceConfig = K4A_DEVICE_CONFIG_INIT_DISABLE_ALL;
deviceConfig.depth_mode = K4A_DEPTH_MODE_NFOV_UNBINNED;

k4a_device_t device;
VERIFY(k4a_device_open(0, &device), "Open K4A Device failed!");
VERIFY(k4a_device_start_cameras(device, &device_config), "Start K4A cameras failed!");
VERIFY(k4a_device_start_cameras(device, &deviceConfig), "Start K4A cameras failed!");

k4a_calibration_t sensor_calibration;
VERIFY(k4a_device_get_calibration(device, device_config.depth_mode, device_config.color_resolution, &sensor_calibration),
VERIFY(k4a_device_get_calibration(device, deviceConfig.depth_mode, deviceConfig.color_resolution, &sensor_calibration),
"Get depth camera calibration failed!");

k4abt_tracker_t tracker = NULL;
Expand Down

0 comments on commit e6fab12

Please sign in to comment.