Azure-Kinect-Sensor-SDK icon indicating copy to clipboard operation
Azure-Kinect-Sensor-SDK copied to clipboard

body track v1.1.0 model does not load in countries that don't use ASCII; due to model_path is not `wchar_t`

Open diablodale opened this issue 3 years ago • 1 comments

k4abt_tracker_configuration_t.model_path is a POD const char*. Naturally, this is errant. Azure is a world-wide service and includes Kinect. Therefore, the path must be a wide char, UTF-16, UTF-8, etc.

Setup

Body tracking v1.1.0

Repro

Look at the header file sdk\include\k4abttypes.h

Result

Line 157

const char* model_path;

Expected

const wchar_t* model_path;

or better...

const filesystem::path model_path;

Workaround

None. If there is any part of the path that has a non 8-bit ASCII/simple character, then it is impossible for body tracking to load the model.

diablodale avatar Mar 24 '21 12:03 diablodale

v1.1.0 continues to fail v1.1.2 additionally fails when given path as 8-bit character string in local codepage.

diablodale avatar Jun 06 '22 16:06 diablodale