Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# FaceLibrary.getModelFileName Method

Module: FaceLibrary

## Definition

Retrieves the model file name which is needed in the LoadModel function.

Python

    @staticmethod
    get_model_file_name(model: FaceModel) -> str

Parameters

> `model` FaceModel
> in The Face Model to look for.

Returns

> `str`
> The expected file name

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    static String getModelFileName(FaceModel model)

Parameters

> `model` FaceModel
> in The Face Model to look for.

Returns

> `String`
> The expected file name

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public static string GetModelFileName(FaceModel model)

Parameters

> `model` FaceModel
> in The Face Model to look for.

Returns

> `string`
> The expected file name

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public static String getModelFileName(FaceModel model) throws FaceException

Parameters

> `model` FaceModel
> in The Face Model to look for.

Returns

> `String`
> The expected file name

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public static func getModelFileName(model: FaceModel) throws -> String

Parameters

> `model` FaceModel
> in The Face Model to look for.

Returns

> `String`
> The expected file name

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    int id3FaceLibrary_GetModelFileName (
        id3FaceModel eModel,
        char * fileName,
        int * fileNameSize)

Parameters

> `eModel` id3FaceModel
> in The Face Model to look for.
> `fileName` char *
> out The expected file name
> `fileNameSize` int *
> in Size of the ‘fileName’ buffer. Receives the minimum required buffer size to hold the ‘fileName’ string if the given one is too small (including the terminating NULL character), otherwise receives the number of characters in ‘fileName’ (excluding terminating NULL character).

Returns

> `int`
> An error code.
> See id3FaceError file for the list of possible error codes.