Updated on 2022-02-22 GMT+08:00

Obtaining Model Paths

This API is used to obtain the path of the directory where the skill model is located. The path ends with a slash (/). This function is applicable to the scenario where a model is selected and delivered on the model management page during skill creation. The model file is downloaded to a dedicated location for storing models. This function is used to obtain the directory where the model is located. If the HiLens Framework does not obtain the directory where the model is located, the current path (the directory where the code is stored) is returned.

  • API calling

    hilens.get_model_dir()

  • Return value

    A character string is returned, indicating the path of the skill model. If the operation fails, an empty character string is returned.