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

# FaceTemplate.fromFile Method

Module: FaceTemplate

## Definition

Imports the face template object from a file.

Python

    @staticmethod
    from_file(path: str) -> FaceTemplate

Parameters

> `path` str
> in Path to the file to import the face template object from.

Returns

> FaceTemplate
> The newly created face template.

Exceptions

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

Dart

    static FaceTemplate fromFile(String? path)

Parameters

> `path` String
> in Path to the file to import the face template object from.

Returns

> FaceTemplate
> The newly created face template.

Exceptions

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

C#

    public static FaceTemplate FromFile(string path)

Parameters

> `path` string
> in Path to the file to import the face template object from.

Returns

> FaceTemplate
> The newly created face template.

Exceptions

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

Java

    public static FaceTemplate fromFile(String path) throws FaceException

Parameters

> `path` String
> in Path to the file to import the face template object from.

Returns

> FaceTemplate
> The newly created face template.

Exceptions

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

Swift

    public static func fromFile(path: String) throws -> FaceTemplate

Parameters

> `path` String
> in Path to the file to import the face template object from.

Returns

> FaceTemplate
> The newly created face template.

Exceptions

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

C

    int id3FaceTemplate_FromFile (
        ID3_FACE_TEMPLATE hFaceTemplate,
        const char * path)

Parameters

> `hFaceTemplate` ID3_FACE_TEMPLATE
> in Handle to the FaceTemplate object.
> `path` const char *
> in Path to the file to import the face template object from.

Returns

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