Updated on 2023-06-15 GMT+08:00

Obtaining Model Paths

This section describes how to return the path of a skill model directory.

If the skill code package is separated from the model, the model will be downloaded to a specified directory. The following API is used to obtain the path. If the HiLens Framework does not obtain the directory where the model is located, the current path is returned.

API Calling

std::string hilens::GetModelDirPath()

Return Value

A character string is returned, indicating the path of the skill model directory (with a slash (/) at the end). If the path of the skill model directory fails to be obtained, a null character string is returned.