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

# FaceTemplate.fromBuffer Method

Module: FaceTemplate

## Definition

Imports the face template object from a buffer.

Python

    @staticmethod
    from_buffer(data: bytearray) -> FaceTemplate

Parameters

> `data` bytearray
> in Buffer 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 fromBuffer(Uint8List? data)

Parameters

> `data` Uint8List
> in Buffer 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 FromBuffer(byte[] data)

Parameters

> `data` byte[]
> in Buffer 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 fromBuffer(byte[] data) throws FaceException

Parameters

> `data` byte[]
> in Buffer 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 fromBuffer(data: [UInt8]) throws -> FaceTemplate

Parameters

> `data` [UInt8]
> in Buffer 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_FromBuffer (
        ID3_FACE_TEMPLATE hFaceTemplate,
        unsigned char * data,
        int dataSize)

Parameters

> `hFaceTemplate` ID3_FACE_TEMPLATE
> in Handle to the FaceTemplate object.
> `data` unsigned char *
> in Buffer to import the face template object from.
> `dataSize` int
> in Size of the ‘data’ buffer.

Returns

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